chore: npm env settings style

This commit is contained in:
Rhys Arkins 2021-08-13 13:49:49 +02:00
parent 13532ecd3d
commit 960b64e6f0

View file

@ -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 {