refactor: log npmrc

This commit is contained in:
Rhys Arkins 2018-07-06 16:56:29 +02:00
parent 1a6fc179c5
commit 42145e60fc
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ function decryptConfig(config, privateKey) {
} }
/* eslint-enable no-template-curly-in-string */ /* eslint-enable no-template-curly-in-string */
} else { } else {
logger.debug('Adding npmrc to config');
decryptedConfig.npmrc = `//registry.npmjs.org/:_authToken=${token}\n`; decryptedConfig.npmrc = `//registry.npmjs.org/:_authToken=${token}\n`;
} }
} else { } else {

View file

@ -121,6 +121,7 @@ async function mergeRenovateConfig(config) {
const decryptedConfig = decryptConfig(migratedConfig, config.privateKey); const decryptedConfig = decryptConfig(migratedConfig, config.privateKey);
// istanbul ignore if // istanbul ignore if
if (decryptedConfig.npmrc) { if (decryptedConfig.npmrc) {
logger.debug('Found npmrc in decrypted config - setting');
npmApi.setNpmrc( npmApi.setNpmrc(
decryptedConfig.npmrc, decryptedConfig.npmrc,
config.global ? config.global.exposeEnv : false config.global ? config.global.exposeEnv : false