Skip to content
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 pkg does not properly save dependencies #1773

Closed
IOAyman opened this issue Nov 10, 2016 · 3 comments
Closed

yarn upgrade pkg does not properly save dependencies #1773

IOAyman opened this issue Nov 10, 2016 · 3 comments

Comments

@IOAyman
Copy link

IOAyman commented Nov 10, 2016

Do you want to request a feature or report a bug?
bug

What is the current behavior?
yarn upgradeing a package in devDependencies results in a new duplicate in devDependencies

How to reproduce

$ mkdir test && cd test
$ yarn init
$ yarn add --dev ts-node@^1.6.0   # latest version is 1.7.0
$ yarn upgrade ts-node
$ cat package.json
"devDependencies": {
  "ts-node": "^1.6.0" 
},
"dependencies": {
  "ts-node": "^1.7.0"
}

Note that the old version is kept in devDependencies and the new one is saved to dependencies as well

What is the expected behavior?

"devDependencies": {
  "ts-node": "^1.7.0"
}

Please mention your node.js, yarn and operating system version.
yarn: v0.16.1
node: v6.9.1
os: Linux


This references #1620
/cc @wyze

@IOAyman
Copy link
Author

IOAyman commented Nov 10, 2016

I've just realized that master has not been published to npm registry yet!
When is it going to be published, please?

@IOAyman IOAyman closed this as completed Nov 10, 2016
@wyze
Copy link
Member

wyze commented Nov 10, 2016

I'm not sure when the next stable release will be out, but you could give the nightly build a shot.

wget https://yarnpkg.com/install.sh
chmod +x install.sh
./install.sh --nightly

@IOAyman
Copy link
Author

IOAyman commented Nov 11, 2016

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants