Skip to content

Commit 0606900

Browse files
authored
Repo: Update the version in package-lock.json as well
Closes gh-106
1 parent 932f45d commit 0606900

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/repo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var fs = require( "fs" ),
66
module.exports = function( Release ) {
77

88
Release.define( {
9-
_jsonFiles: [ "package.json", "bower.json" ],
9+
_jsonFiles: [ "package.json", "package-lock.json", "bower.json" ],
1010
_cloneRepo: function() {
1111
var projectRelease, releaseDependencies;
1212

@@ -270,6 +270,7 @@ Release.define( {
270270

271271
// Update only canonical version
272272
Release._versionJSON( "package.json", Release.nextVersion );
273+
Release._versionJSON( "package-lock.json", Release.nextVersion );
273274

274275
console.log( "Committing version update..." );
275276
Release.exec( "git commit -am \"Build: Updating the " + Release.branch +

0 commit comments

Comments
 (0)