diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/config/pacote.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/config/pacote.js b/lib/config/pacote.js index 620a8b714..42a98b7d2 100644 --- a/lib/config/pacote.js +++ b/lib/config/pacote.js @@ -49,7 +49,7 @@ function pacoteOpts (moreOpts) { npm.config.keys.forEach(function (k) { const authMatch = k[0] === '/' && k.match( - /(.*):(_authToken|username|_password|password|email|alwaysAuth)$/ + /(.*):(_authToken|username|_password|password|email|always-auth|alwaysAuth)$/ ) if (authMatch) { const nerfDart = authMatch[1] @@ -61,6 +61,8 @@ function pacoteOpts (moreOpts) { opts.auth[nerfDart].token = val } else if (key.match(/password$/i)) { opts.auth[nerfDart].password = val + } else if (key === 'always-auth') { + opts.auth[nerfDart].alwaysAuth = val } else { opts.auth[nerfDart][key] = val } |