mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: replace Object.assign with object spread syntax (#34739)
This commit is contained in:
@@ -20,12 +20,13 @@ const args = require('minimist')(process.argv.slice(2), {
|
||||
async function main () {
|
||||
const outDir = utils.getOutDir({ shouldLog: true });
|
||||
const nodeDir = path.resolve(BASE, 'out', outDir, 'gen', 'node_headers');
|
||||
const env = Object.assign({}, process.env, {
|
||||
const env = {
|
||||
...process.env,
|
||||
npm_config_nodedir: nodeDir,
|
||||
npm_config_msvs_version: '2019',
|
||||
npm_config_arch: process.env.NPM_CONFIG_ARCH,
|
||||
npm_config_yes: 'true'
|
||||
});
|
||||
};
|
||||
|
||||
const clangDir = path.resolve(BASE, 'third_party', 'llvm-build', 'Release+Asserts', 'bin');
|
||||
const cc = path.resolve(clangDir, 'clang');
|
||||
|
||||
Reference in New Issue
Block a user