chore: replace Object.assign with object spread syntax (#34739)
This commit is contained in:
parent
ba4893c248
commit
e2c58d164d
8 changed files with 27 additions and 21 deletions
|
@ -167,7 +167,7 @@ new Promise((resolve, reject) => {
|
|||
const tarballPath = path.join(tempDir, `${rootPackageJson.name}-${rootPackageJson.version}.tgz`);
|
||||
return new Promise((resolve, reject) => {
|
||||
const result = childProcess.spawnSync('npm', ['install', tarballPath, '--force', '--silent'], {
|
||||
env: Object.assign({}, process.env, { electron_config_cache: tempDir }),
|
||||
env: { ...process.env, electron_config_cache: tempDir },
|
||||
cwd: tempDir,
|
||||
stdio: 'inherit'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue