`lerna bootstrap` should support --only-updated flag
See original GitHub issueExpected Behavior
lerna bootstrap
should respect the new --only-updated
flag for CI purposes. lerna bootstrap --only-updated
should only symlink packages that have updates, and install the others as external dependencies.
Current Behavior
lerna bootstrap
does not respect the new --only-updated
flag
Possible Solution
Like I mentioned above, update lerna bootstrap
to respect the --only-updated
flag and only symlink modules if they’ve been updated. Otherwise, install them as external dependencies.
Context
We would love to run our build/test/lint on only updated packages as this would speed up our CI builds significantly. Since as of today lerna bootstrap
does not respect the new --only-updated
flag, when we run lerna exec --only-updated -- yarn build
it only builds out updated packages (yay). However; when we run lerna exec --only-updated -- yarn test
now, tests that depend on modules that did not change fail because they were not built (boo). So currently, we can only get away with building all packages and running lint/test on only updated packages.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Sounds like @treshugart is on the right track. I wasn’t sure what the best way to implement it was, I just know the use case we have, and it’s the same as his.
@treshugart Sorry, yes, I meant to respond to @kanzelm3. I’m clearing my queue before I review #822, I appreciate your patience.