mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
chore: npm env settings style
This commit is contained in:
parent
13532ecd3d
commit
960b64e6f0
1 changed files with 8 additions and 10 deletions
|
@ -420,16 +420,14 @@ export async function getAdditionalFiles(
|
|||
|
||||
const { additionalNpmrcContent, additionalYarnRcYml } = processHostRules();
|
||||
|
||||
const env = getChildProcessEnv([
|
||||
'NPM_CONFIG_CACHE',
|
||||
'YARN_CACHE_FOLDER',
|
||||
'npm_config_store',
|
||||
]);
|
||||
env.NPM_CONFIG_CACHE = await ensureCacheDir('npm');
|
||||
env.YARN_CACHE_FOLDER = await ensureCacheDir('yarn');
|
||||
env.YARN_GLOBAL_FOLDER = await ensureCacheDir('berry');
|
||||
env.npm_config_store = await ensureCacheDir('pnpm');
|
||||
env.NODE_ENV = 'dev';
|
||||
const env = {
|
||||
...getChildProcessEnv(),
|
||||
NPM_CONFIG_CACHE: await ensureCacheDir('npm'),
|
||||
YARN_CACHE_FOLDER: await ensureCacheDir('yarn'),
|
||||
YARN_GLOBAL_FOLDER: await ensureCacheDir('berry'),
|
||||
npm_config_store: await ensureCacheDir('pnpm'),
|
||||
NODE_ENV: 'dev',
|
||||
};
|
||||
|
||||
let token = '';
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue