README
configure-lerna-manifest
Configure Lerna manifest properties
Install
npm install --save-dev @typescript-tools/configure-lerna-manifest
Use
Usage:
configure-lerna-manifest [--root <root>] --packages [<package>]...
Options:
packages Package names or paths to include in the lerna manifest (also reads from stdin)
--root=<root> Root of lerna mono-repository
For example:
git diff --name-only "origin/${CI_DEFAULT_BRANCH}" \
| npx containing-packages \
| npx packages-to-rebuild-on-changes \
| npx configure-lerna-manifest --packages
This one-liner
- determines the packages that contain diffs when compared against the default git branch,
- calculates internal dependencies and internal consumers, and
- sets the
packages
property oflerna.json
to this list