fix(core): update

This commit is contained in:
Philipp Kunz 2018-12-09 02:51:03 +01:00
parent 103e470eb4
commit 77e3b2912d

View File

@ -47,14 +47,14 @@ const prepare = async () => {
if (npmrcFileString.length > 0) { if (npmrcFileString.length > 0) {
logger.log('info', 'found one or more access tokens'); logger.log('info', 'found one or more access tokens');
logger.log('info', `setting default npm registry to ${config.npmRegistryUrl}`);
await bash(`npm set registry https:${config.npmRegistryUrl}`);
} else { } else {
logger.log('error', 'no access token found! Exiting!'); logger.log('error', 'no access token found! Exiting!');
process.exit(1); process.exit(1);
} }
plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc'); plugins.smartfile.memory.toFsSync(npmrcFileString, '/root/.npmrc');
logger.log('info', `setting default npm registry to ${config.npmRegistryUrl}`);
await bash(`npm set registry https:${config.npmRegistryUrl}`);
return; return;
}; };