geddski / grunt-release

Release a new version of your Node-based project
MIT License
389 stars 121 forks source link

Version bump does not update package-lock.json #166

Closed andystalick closed 7 years ago

andystalick commented 7 years ago

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.

andystalick commented 7 years ago

Looks like just setting options.additionalFiles: ['package-lock.json'] will do the trick.