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
Upgrade-interactive should also edit resolutions in package.json #5413
Comments
@yarnpkg/core
then upgrading to |
yeah I'm struggling to come up with the best solution for this, because I think of resolutions as more like a configuration similar to a webpack alias. It's not your actual direct dependency (although it does get installed similar to one 😿 ) and when you are adding a resolution you usually pinning it to resolve a bug, and upgrading them can get into weird edge cases like the case you mentioned. But at the very least, if it won't be auto-updated, we should remove it from showing in |
One issue I find is that |
Any updates on this feature? Either letting the users know that it would not update the resolutions or either removing it in The first approach would be preferable since despite the version of a package is pinned, it should let the user know that this pinned package has some updates in it, which may mean that the reason for pinning it in the first place may be already fixed, making the user update it to the latest version instead of the pinned one. |
Also if you run update and select only packages under resolutions it is not doing any modification. Just prints package names to console. Is that the intended way? |
Do you want to request a feature or report a bug?
Bug (behavioral)
What is the current behavior?
Whenever I run
yarn upgrade-interactive --latest
it asks me if I want to update also resolutions:I update them, but yarn doesn't modify their version in package.json.
So when I run
yarn upgrade-interactive --latest
again, they are still there and yarn asks me if I want to upgrade them again.If the current behavior is a bug, please provide the steps to reproduce.
Have this in your package.json
and run
yarn upgrade-interactive --latest
What is the expected behavior?
Yarn should also edit the resolutions in the package.json (like it works with the dependencies) when you upgrade them.
Please mention your node.js, yarn and operating system version.
Node v9.5.0
Yarn v1.3.2
OSX High Sierra
The text was updated successfully, but these errors were encountered: