diff options
author | isaacs <i@izs.me> | 2020-08-11 00:40:44 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-08-11 00:40:44 +0300 |
commit | 8ba2aeaeeb77718cb06fe577fdd56dcdcbfe9c52 (patch) | |
tree | 2068bd7455e65f7574dfb07a9c1d1ebf85520a05 /node_modules/libnpmversion | |
parent | 3598fe1f2dfe6c55221bbac8aaf21feab74a936a (diff) |
libnpmversion@1.0.3
Updates the new package-lock.json format where version is repeated.
Diffstat (limited to 'node_modules/libnpmversion')
-rw-r--r-- | node_modules/libnpmversion/lib/version.js | 3 | ||||
-rw-r--r-- | node_modules/libnpmversion/package.json | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/node_modules/libnpmversion/lib/version.js b/node_modules/libnpmversion/lib/version.js index 6630187f5..a7ed80780 100644 --- a/node_modules/libnpmversion/lib/version.js +++ b/node_modules/libnpmversion/lib/version.js @@ -88,6 +88,9 @@ module.exports = async (newversion, opts) => { try { const sw = await readJson(lock) sw.version = newV + if (sw.packages && sw.packages['']) { + sw.packages[''].version = newV + } await writeJson(lock, sw) haveLocks.push(lock) } catch (er) {} diff --git a/node_modules/libnpmversion/package.json b/node_modules/libnpmversion/package.json index d1f264b57..9941b810e 100644 --- a/node_modules/libnpmversion/package.json +++ b/node_modules/libnpmversion/package.json @@ -1,6 +1,6 @@ { "name": "libnpmversion", - "version": "1.0.2", + "version": "1.0.3", "main": "lib/index.js", "files": [ "lib/*.js" |