build: dynamically calculate out dir (#19857)
This commit is contained in:
parent
3bd829aee0
commit
991a56135d
3 changed files with 18 additions and 4 deletions
|
@ -142,7 +142,7 @@ async function runMainProcessElectronTests () {
|
|||
}
|
||||
|
||||
async function installSpecModules () {
|
||||
const nodeDir = path.resolve(BASE, `out/${utils.OUT_DIR}/gen/node_headers`)
|
||||
const nodeDir = path.resolve(BASE, `out/${utils.getOutDir(true)}/gen/node_headers`)
|
||||
const env = Object.assign({}, process.env, {
|
||||
npm_config_nodedir: nodeDir,
|
||||
npm_config_msvs_version: '2017'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue