[BUG] npm --workspace [w] version [v]
doesn't update root level package-lock
#3756
Closed
1 task done
Labels
Is there an existing issue for this?
Current Behavior
I have a project using NPM 7 workspaces. One package is named
button
.If I run
npm -w button version minor
, then the version number in button'spackage.json
gets incremented as I would expect. However, the root-levelpackage-lock.json
does not get modified.If I later run an
npm -w button install
then the value inpackages.button.version
gets updated to reflect the current version.Expected Behavior
I would expect the value at
packages.button.version
in the root-levelpackage-lock.json
file to get updated at the same time as button'spackage.json
, when thenpm version
command is run.Steps To Reproduce
npm --workspaces install
to generate basicpackage-lock.json
npm -w [package name] version minor
package.json
has been updated but the root levelpackage-lock.json
has notnpm -w [package name] install
package-lock.json
has one change in it: the sub-package's version number.Environment
The text was updated successfully, but these errors were encountered: