mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: replace Object.assign with object spread syntax (#34739)
This commit is contained in:
@@ -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'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user