Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2020-09-16 18:25:03 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-09-16 18:25:03 +0300
commitf9aac351dd36a19d14e1f951a2e8e20b41545822 (patch)
treec9e368e14bc2dc7a63e96b4ec1c5bf099ca284e8 /node_modules/libnpmversion
parent49b2bf5a798b49d52166744088a80b8a39ccaeb6 (diff)
libnpmversion@1.0.5
Diffstat (limited to 'node_modules/libnpmversion')
-rw-r--r--node_modules/libnpmversion/lib/version.js6
-rw-r--r--node_modules/libnpmversion/package.json2
2 files changed, 6 insertions, 2 deletions
diff --git a/node_modules/libnpmversion/lib/version.js b/node_modules/libnpmversion/lib/version.js
index b3590c3f0..28ba039a0 100644
--- a/node_modules/libnpmversion/lib/version.js
+++ b/node_modules/libnpmversion/lib/version.js
@@ -100,7 +100,11 @@ module.exports = async (newversion, opts) => {
if (doGit) {
// - git add, git commit, git tag
- await git.spawn(['add', `${path}/package.json`, ...haveLocks], opts)
+ await git.spawn(['add', `${path}/package.json`], opts)
+ // sometimes people .gitignore their lockfiles
+ for (const lock of haveLocks) {
+ await git.spawn(['add', lock], opts).catch(() => {})
+ }
await commit(newV, opts)
await tag(newV, opts)
} else
diff --git a/node_modules/libnpmversion/package.json b/node_modules/libnpmversion/package.json
index a5020146d..c42801a8e 100644
--- a/node_modules/libnpmversion/package.json
+++ b/node_modules/libnpmversion/package.json
@@ -1,6 +1,6 @@
{
"name": "libnpmversion",
- "version": "1.0.4",
+ "version": "1.0.5",
"main": "lib/index.js",
"files": [
"lib/*.js"