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 { additionalNpmrcContent, additionalYarnRcYml } = processHostRules();
|
||||||
|
|
||||||
const env = getChildProcessEnv([
|
const env = {
|
||||||
'NPM_CONFIG_CACHE',
|
...getChildProcessEnv(),
|
||||||
'YARN_CACHE_FOLDER',
|
NPM_CONFIG_CACHE: await ensureCacheDir('npm'),
|
||||||
'npm_config_store',
|
YARN_CACHE_FOLDER: await ensureCacheDir('yarn'),
|
||||||
]);
|
YARN_GLOBAL_FOLDER: await ensureCacheDir('berry'),
|
||||||
env.NPM_CONFIG_CACHE = await ensureCacheDir('npm');
|
npm_config_store: await ensureCacheDir('pnpm'),
|
||||||
env.YARN_CACHE_FOLDER = await ensureCacheDir('yarn');
|
NODE_ENV: 'dev',
|
||||||
env.YARN_GLOBAL_FOLDER = await ensureCacheDir('berry');
|
};
|
||||||
env.npm_config_store = await ensureCacheDir('pnpm');
|
|
||||||
env.NODE_ENV = 'dev';
|
|
||||||
|
|
||||||
let token = '';
|
let token = '';
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue