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:
authorZhenya Vinogradov <zhenyavinogradov@gmail.com>2019-12-03 15:11:47 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-01-07 19:32:52 +0300
commitfd0a802ec468ec7b98d6c15934c355fef0e7ff60 (patch)
treefdb7441f1b7191611053637e5baa2b081da42705 /lib/ci.js
parente16f68d30d59ce1ddde9fe62f7681b2c07fce84d (diff)
Fix cache location for `npm ci`
When you set `<cache>` directory in npm config, `npm ci` has been using `<cache>` for storing the cache instead of `<cache>/_cacache` PR-URL: https://github.com/npm/cli/pull/550 Credit: @zhenyavinogradov Close: #550 Reviewed-by: @ruyadorno
Diffstat (limited to 'lib/ci.js')
-rw-r--r--lib/ci.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci.js b/lib/ci.js
index a0df3b86f..d5b5c1544 100644
--- a/lib/ci.js
+++ b/lib/ci.js
@@ -33,7 +33,7 @@ function ci (args, cb) {
}
for (const key in npm.config.list[0]) {
- if (key !== 'log') {
+ if (!['log', 'cache'].includes(key)) {
opts[key] = npm.config.list[0][key]
}
}