You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug? bug
What is the current behavior?
Yarn will commit unstaged changes to package.json when it increments the version during yarn version --<version type>
If the current behavior is a bug, please provide the steps to reproduce.
Make a change to package.json and do not stage the change
Run yarn version --minor
Observe that the unstaged change in package.json has been committed along with the automatic change of incrementing the version.
What is the expected behavior?
I would assume that yarn would warn and/or abort if package.json has other changes.
Please mention your node.js, yarn and operating system version.
Windows 10, Node v10.15.1, Yarn v1.19.1
The text was updated successfully, but these errors were encountered:
jdolearydl
changed the title
yarn version commits unstaged changes in package.json
"yarn version" command commits unstaged changes in package.json
Nov 14, 2019
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Yarn will commit unstaged changes to package.json when it increments the version during
yarn version --<version type>
If the current behavior is a bug, please provide the steps to reproduce.
yarn version --minor
What is the expected behavior?
I would assume that yarn would warn and/or abort if package.json has other changes.
Please mention your node.js, yarn and operating system version.
Windows 10, Node v10.15.1, Yarn v1.19.1
The text was updated successfully, but these errors were encountered: