Skip to content

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

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

shnhrrsn
Copy link

@shnhrrsn shnhrrsn commented Mar 5, 2022

What's the problem this PR addresses?

Unlike yarn install the current implementation of yarn workspaces focus does not support passing through an InstallMode value.

Closes #3524

How did you fix it?

Copied over the flag + docs from yarn install and passed through to project.install.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.


- \`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.
Copy link
Member

@merceyz merceyz Mar 5, 2022

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

Copy link

@leshkovichpvl leshkovichpvl Apr 8, 2022

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

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

Successfully merging this pull request may close these issues.

[Feature] Add --mode=skip-build to yarn workspaces focus --production
4 participants