Skip to content

Commit fd0a802

Browse files
zhenyavinogradovruyadorno
authored andcommitted
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
1 parent e16f68d commit fd0a802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function ci (args, cb) {
3333
}
3434

3535
for (const key in npm.config.list[0]) {
36-
if (key !== 'log') {
36+
if (!['log', 'cache'].includes(key)) {
3737
opts[key] = npm.config.list[0][key]
3838
}
3939
}

0 commit comments

Comments
 (0)