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
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue