Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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: #550
Credit: @zhenyavinogradov
Close: #550
Reviewed-by: @ruyadorno
  • Loading branch information
zhenyavinogradov authored and ruyadorno committed Jan 7, 2020
1 parent e16f68d commit fd0a802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ci.js
Expand Up @@ -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]
}
}
Expand Down

0 comments on commit fd0a802

Please sign in to comment.