Starting with npm 5, manually running npm version patch will update version in both package.json and package-lock.json. The direct manipulation of the package.json file done by this script, leaves the lockfile out of sync.
The lockfile should be committed to source control by default as well.
Starting with npm 5, manually running
npm version patch
will updateversion
in bothpackage.json
andpackage-lock.json
. The direct manipulation of thepackage.json
file done by this script, leaves the lockfile out of sync.The lockfile should be committed to source control by default as well.