(appDir: string, baseEnv: NodeJS.ProcessEnv = process.env)
| 6 | } |
| 7 | |
| 8 | export function buildAppSetupEnv(appDir: string, baseEnv: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv { |
| 9 | const cacheDir = appLocalNpmCacheDir(appDir); |
| 10 | fs.mkdirSync(cacheDir, { recursive: true }); |
| 11 | return { |
| 12 | ...baseEnv, |
| 13 | npm_config_cache: cacheDir, |
| 14 | NPM_CONFIG_CACHE: cacheDir |
| 15 | }; |
| 16 | } |
no test coverage detected