-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
yarn upgrade changes the package.json's dependencies with versions defined as tags.
If the current behavior is a bug, please provide the steps to reproduce.
Having a package.json with:
"dependencies": {
"myDep": "next"
}
After running yarn, yarn.lock -> [email protected]
If I ran yarn upgrade, everything stays the same, good.
Then:
npm publish [email protected] --tag=next
yarn upgrade
My package.json is now:
"dependencies": {
"myDep": "1.0.0-next.1"
}
This time yarn upgrade changes my package.json to a specific version.
What is the expected behavior?
I would expect the package.json to still reference to next and the yarn.lock to change to 1.0.0-next.1. If not, then next yarn upgrade will leave the version as 1.0.0-next.1 again.
I'm looking for a way to update the yarn.lock based on the latest version of a tagged dependency.
Please mention your node.js, yarn and operating system version.
Node 8.6.0
Yarn 1.1.0
Mac 10.12.6