build: allow getOutDir cli argument (#21545)

This commit is contained in:
Shelley Vohr 2019-12-17 14:00:42 -08:00 committed by GitHub
parent 54b4756a29
commit f0d52eaf0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 8 deletions

View file

@ -14,7 +14,7 @@ if (!process.mainModule) {
}
async function main () {
const nodeDir = path.resolve(BASE, `out/${utils.getOutDir(true)}/gen/node_headers`)
const nodeDir = path.resolve(BASE, `out/${utils.getOutDir({ shouldLog: true })}/gen/node_headers`)
const env = Object.assign({}, process.env, {
npm_config_nodedir: nodeDir,
npm_config_msvs_version: '2019',