diff --git a/install/prebuild-ci.js b/install/prebuild-ci.js index c756f001..f612f967 100644 --- a/install/prebuild-ci.js +++ b/install/prebuild-ci.js @@ -2,11 +2,11 @@ const { spawnSync } = require('child_process'); -const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG, TRAVIS_TAG } = process.env; +const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG_NAME, TRAVIS_TAG } = process.env; -if (hasToken && (Boolean(APPVEYOR_REPO_TAG) || TRAVIS_TAG)) { - spawnSync( - 'node ./node_modules/.bin/prebuild --runtime napi --target 3', +if (hasToken && (APPVEYOR_REPO_TAG_NAME || TRAVIS_TAG)) { + spawnSync('node', + ['./node_modules/prebuild/bin.js', '--runtime', 'napi', '--target', '3'], { shell: true, stdio: 'inherit' } ); }