Skip to content

Commit

Permalink
fix(npm): pass through COREPACK env to child process (renovatebot#26664)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored and zT-1337 committed Jan 24, 2024
1 parent 3736000 commit 3eba7f6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/util/exec/env.ts
Expand Up @@ -24,6 +24,17 @@ const basicEnvVars = [
'PROGRAMFILES(X86)',
'APPDATA',
'LOCALAPPDATA',
// Corepack: https://github.com/nodejs/corepack
'COREPACK_DEFAULT_TO_LATEST',
'COREPACK_ENABLE_NETWORK',
'COREPACK_ENABLE_STRICT',
'COREPACK_ENABLE_PROJECT_SPEC',
'COREPACK_HOME',
'COREPACK_NPM_REGISTRY',
'COREPACK_NPM_TOKEN',
'COREPACK_NPM_USERNAME',
'COREPACK_NPM_PASSWORD',
'COREPACK_ROOT',
];

export function getChildProcessEnv(
Expand Down

0 comments on commit 3eba7f6

Please sign in to comment.