diff options
author | Zhenya Vinogradov <zhenyavinogradov@gmail.com> | 2019-12-03 15:11:47 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2020-01-07 19:32:52 +0300 |
commit | fd0a802ec468ec7b98d6c15934c355fef0e7ff60 (patch) | |
tree | fdb7441f1b7191611053637e5baa2b081da42705 /lib/ci.js | |
parent | e16f68d30d59ce1ddde9fe62f7681b2c07fce84d (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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] } } |