Replies: 1 comment 4 replies
-
This isn't supported by the CLI. You can fairly easily force ranges to be re-resolved using the JS API, but...
May I ask why? By keeping the existing ranges but upgrading the underlying packages you purposefully end up in a situation where a new hire reading at your package.json would get the wrong impression as to the versions you use. Is there a practical reason for not wanting the manifests to change on upgrades? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just migrated to Yarn 2 and it fixed a lot of issues I was encountering with workspaces, while speeding up a lot of things, congrats!
The only problem I have now is to have a way to do what
yarn upgrade
did in Yarn 1: upgrade all dependencies in my lockfile while not touching my package.json files and respecting the version constraints I wrote.We are quite careful in specifying our deps constraints (carets vs tilde for example) and do not want our package.json files to change without a manual intervention, but we want to be able to update our packages (and their deep dependancies) to the latest version at once.
Then we look at the still outdated packages, and change the version constraints manually (after checking the changelogs), before running yarn again.
I have not been able to find out how to do this with Berry, even with plugins. I am missing something, or is our workflow out of the ordinary?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions