-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: add --mode
to yarn workspaces focus
#4187
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
base: master
Are you sure you want to change the base?
Conversation
|
||
- \`skip-build\` will not run the build scripts at all. Note that this is different from setting \`enableScripts\` to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step - but not the scripts themselves, which just won't run. | ||
|
||
- \`update-lockfile\` will skip the link step altogether, and only fetch packages that are missing from the lockfile (or that have no associated checksums). This mode is typically used by tools like Renovate or Dependabot to keep a lockfile up-to-date without incurring the full install cost. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update-lockfile
can't be implemented in workspaces focus
since it isn't allowed to update the project
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe leave only flag --skip-build
without mode? Like this shnhrrsn#1
What's the problem this PR addresses?
Unlike
yarn install
the current implementation ofyarn workspaces focus
does not support passing through anInstallMode
value.Closes #3524
How did you fix it?
Copied over the flag + docs from
yarn install
and passed through toproject.install
.Checklist