Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run build in only changed packages with lerna #30

Open
4 tasks
chriscasola opened this issue Apr 3, 2020 · 1 comment
Open
4 tasks

Run build in only changed packages with lerna #30

chriscasola opened this issue Apr 3, 2020 · 1 comment

Comments

@chriscasola
Copy link
Owner

chriscasola commented Apr 3, 2020

  • Run yarn install in root of monorepo
  • Figure out which packages have changed: lerna changed --include-merged-tags --json --toposort
  • Run yarn install --focus in the lowest-level package that must be built
  • Run lerna run --since --include-merged-tags

^ doesn't work if there's is a 3rd dep that the second package depends on, but the first does not. That 3rd dep won't be focused or built :/

@chriscasola
Copy link
Owner Author

What about yarn 2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant