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
feat(npm): use Yarn 3 mode to skip install or build #11012
Conversation
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.
Should also be tested on exiting yarn v1 and yarn v2 projects to be safe?
|
Sorry for the delay. It now sets |
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.
Some small changes
I didn't know a non-member could do that 😄 |
Also the author of the PR is allowed to use that. 🤗 |
🎉 This PR is included in version 26.12.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Thank you for the reviews! |
Changes:
skipInstalls = false
if zero-installs is used.--mode=update-lockfile
flag to not run the link step and only fetch what's necessary to compute an updated lockfile ifconfig.skipInstalls !== false
.--mode=skip-build
to not run the build scripts instead of skipping the whole build step (enableScripts: false
) if!adminConfig.allowScripts || config.ignoreScripts
.Context:
This PR fixes #10061 and reduces network bandwidth by fetching only necessary packages. This PR also fixes #7584 by running the build step that unplugs packages.
Caveat
Yarn built between yarnpkg/berry@9bcd27a and yarnpkg/berry@d132132 would cause an invalid option error. This would affect:
3.0.0-rc.1
to3.0.0-rc.9
)yarn set version from sources
run between two commitsDocumentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: