question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`lerna bootstrap` should support --only-updated flag

See original GitHub issue

Expected 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kanzelm3commented, Jun 6, 2017

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.

1reaction
evocateurcommented, Jun 6, 2017

@treshugart Sorry, yes, I meant to respond to @kanzelm3. I’m clearing my queue before I review #822, I appreciate your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lerna - npm
npm prepublish all bootstrapped packages. lerna bootstrap respects the --ignore , --scope and --include-filtered-dependencies flags (see Flags).
Read more >
@lerna/bootstrap | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Lerna: Documentation
Lerna is a fast modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
Read more >
Integrating Nx and Lerna
Lerna has dependency management already built-in using lerna bootstrap . Running that will install all npm dependencies for all packages and also symlink ......
Read more >
Contributing - Refine Dev
Instead of running lerna bootstrap directly, read on to see how refine ... If you add filters with --scope flag, you can avoid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found