monorepo-utils
monorepo-utils copied to clipboard
A collection of utilities for monorepo/lerna. Tools for TypeScript project references etc..
I am experiencing an issue similar to #31, but on macOS. `package.json` ```json { "name": "panama", "packageManager": "[email protected]", "private": true, "workspaces": [ "./packages/*" ], "scripts": { "update-references": "yarn node ./scripts/updateReferences.js"...
Based on https://github.com/azu/monorepo-utils/blob/8ccf1c70c2582770ee6fc5fd71bf3b6e5e95400f/packages/%40monorepo-utils/workspaces-to-typescript-project-references/src/manager/workspaces.ts#L26-L30, the dependency resolution logic is: - package name has to match AND - if dependency version starts with `workspace:` OR - dependency version matches semver of package...
https://github.com/azu/monorepo-utils/blob/e81ccef54a436d0df5f322ffc405356a865febfa/packages/%40monorepo-utils/workspaces-to-typescript-project-references/src/index.ts#L89 currently, assert references without sorting. This behavior may cause false positives. We need to sort and assert. **Another option:** Write the sorted result to tsconfig.json. It will be breaking...
Just tried https://github.com/Bessonov/set-project-references but it didn't work for me. pnpm shouldn't be so different to yarn, you have just to get for values with `workspace` and check the hard link...
I like the the new `version` command in lerna 3.0. I also like the _lean_ monorepo approach (aka golden path) based on file specifiers that is demonstrated in zillow/javascript and...
Re #64 Adds missing reference for support for pnpm's workspaces
workspaces-to-typescript-project-references: add option to sort references with dependent-upon logic
Hi guys, I was wondering if it wouldn't be that complicated to add an option to sort references using a dependent-upon logic instead of an alphabetical one (especially in the...
`workspaces-to-typescript-project-references` does not handle references to config files correctly
The `path` property of each reference in a TypeScript project can point to a directory containing a `tsconfig.json` file or directly to the config file itself (which may have any...
Resolves #91 Referred to answers to this StackOverflow question to determine a method for resolving tsconfigs + configs they extend using TypeScript's API. https://stackoverflow.com/questions/67956755/how-to-compile-tsconfig-json-into-a-config-object-using-typescript-api/70013087#70013087 Added a unit test and also...
We have a yarn workspace which has a few packages which are used for sharing configuration/local build tooling/etc. These packages utilize TypeScript for typechecking, but are set to not emit...