Support for Yarn auto-migrations #44571
lsrocha
started this conversation in
Suggest an Idea
Replies: 1 comment 2 replies
-
|
How do we trigger the yarn binary? (sorry, yarn noob here). If you could explain with more details like the commands we might have to run then it'd be helpful. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Yarn project is using auto-migrations as a strategy for preventing breaking changes in minor releases. New default configuration values are shipped and existing projects, based on the existence of
yarn.lock, have their.yarnrc.ymlfiles modified to preserve the previous behavior. This approach was recently used in versions 4.14.0, which disables postinstall scripts by default, and 4.15.0, which sets a default minimum release age gate.Since Corepack is the recommended way for managing Yarn installations, any Yarn updates in
packageManagershould result in the yarn binary being triggered to perform any possible migrations, and the.yarnrc.ymlshould then be committed.Renovate currently only touches the
.yarnrc.ymlwhen Yarn is managed viayarnPath. If the version is only declared inpackageManager, thepackage.jsonis the only updated file.To prevent introducing breaking changes into the project I maintain, I had to disable Yarn upgrades.
Beta Was this translation helpful? Give feedback.
All reactions