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
path: root/lib/ci.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2020-09-17 01:14:21 +0300
committerisaacs <i@izs.me>2020-09-17 01:14:31 +0300
commit24f3a5448f021ad603046dfb9fd97ed66bd63bba (patch)
tree16531bcb615b28419e8cee01a53360da1acea403 /lib/ci.js
parentecd42ce56e1b51b583439bc7b30d1fdce98e4665 (diff)
npm ci should never save package.json or lockfile
Via: https://github.com/targos/npm7-cra#issue-1-npm-ci-changes-packagejson
Diffstat (limited to 'lib/ci.js')
-rw-r--r--lib/ci.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ci.js b/lib/ci.js
index 54e89a6a2..2e151fd7b 100644
--- a/lib/ci.js
+++ b/lib/ci.js
@@ -33,7 +33,8 @@ const ci = async () => {
}),
rimraf(`${where}/node_modules/`)
])
- await arb.reify()
+ // npm ci should never modify the lockfile or package.json
+ await arb.reify({ save: false })
reifyOutput(arb)
}