-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
yarn upgrade-interactive doesn't update the package.json file #4443
Comments
Duplicate of #4390? |
@apertureless why should it update your |
But I'm installing a patch version and I want that patch in every installation. That should be in the package.json. |
You are getting the patch version @navarroaxel. Just look into your Update: I see that you are the issue creator and don't have a |
Hmm, so I would expect |
Actually, this seems to be working as intended for me in Yarn 1.0.2. @navarroaxel could you include the output of the commands you ran? This is my starting package.json
This is the incorrect behavior in v0.28.1. The version of body-parser is pinned at 1.18.0, so 1.18.1 is not a valid upgrade:
And the corrected behavior in v1.0.2, respecting the semver range (pinned at exactly 1.18.0)
And using the
|
Using If this is the expected behavior I think we could close this issue. |
Me too. Only updated the lock file rather than package.json |
Same here |
still a problem... |
If someone's interested to investigate this bug and open a PR, it would make a great Hacktoberfest contribution :) |
@navarroaxel @blade254353074 that is the expected behavior. It is somewhat specified in the RFC: https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-upgrade-command-consistency.md Without the
I left #4477 open as a feature request to also update the package.json range. I'm going to close this issue for now as not updating package.json was intended. If you would make any supporting arguments for updating it over in #4477 I would appreciate it. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
yarn upgrade-interactive
doesn't update the package.json with the selected version.If the current behavior is a bug, please provide the steps to reproduce.
I run
yarn upgrade-interative
and I choose upgradebody-parser
to v1.18.1 or superior.The package.json has the same version "1.18.0" on it.
What is the expected behavior?
I expect the same behavior I had on yarn v0.27.5: The
package.json
should update the dependencies' versions with the selected ones onupgrade-interactive
process.Please mention your node.js, yarn and operating system version.
node: 6.11.3
yarn: 1.0.2
OS: Ubuntu 16.04.3
The text was updated successfully, but these errors were encountered: