mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Polish the code that sets env in packageJSONContribution.ts (#213306)
This commit is contained in:
parent
2d174613d4
commit
027fce3efd
|
@ -292,7 +292,7 @@ export class PackageJSONContribution implements IJSONContribution {
|
|||
// COREPACK_ENABLE_AUTO_PIN disables the package.json overwrite, and
|
||||
// COREPACK_ENABLE_PROJECT_SPEC makes the npm view command succeed
|
||||
// even if packageManager specified a package manager other than npm.
|
||||
const env = { COREPACK_ENABLE_AUTO_PIN: "0", COREPACK_ENABLE_PROJECT_SPEC: "0" };
|
||||
const env = { ...process.env, COREPACK_ENABLE_AUTO_PIN: '0', COREPACK_ENABLE_PROJECT_SPEC: '0' };
|
||||
cp.execFile(npmCommandPath, args, { cwd, env }, (error, stdout) => {
|
||||
if (!error) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue