chore: replace Object.assign with object spread syntax (#34739)

This commit is contained in:
David Sanders 2022-06-27 01:29:18 -07:00 committed by GitHub
parent ba4893c248
commit e2c58d164d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 21 deletions

View file

@ -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'
});