We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605c1ab commit a316dd0Copy full SHA for a316dd0
lib/updaters/types/json.js
@@ -11,6 +11,12 @@ module.exports.writeVersion = function (contents, version) {
11
const indent = detectIndent(contents).indent
12
const newline = detectNewline(contents)
13
json.version = version
14
+
15
+ if (json.packages && json.packages['']) {
16
+ // package-lock v2 stores version there too
17
+ json.packages[''].version = version
18
+ }
19
20
return stringifyPackage(json, indent, newline)
21
}
22
0 commit comments