fix: use the script-runner's npm in the bootstrap

This commit is contained in:
Amin Yahyaabadi 2022-06-10 20:25:35 -07:00
parent f15a9de354
commit df5eb81540
3 changed files with 3106 additions and 1 deletions

View File

@ -129,10 +129,12 @@ function getNpmBinPath() {
}
function getLocalNpmBinPath() {
// NOTE this assumes that npm is installed as a script-runner dependency
const npmBinName = process.platform === 'win32' ? 'npm.cmd' : 'npm';
const localNpmBinPath = path.resolve(
repositoryRootPath,
'script',
'script-runner',
'node_modules',
'.bin',
npmBinName

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
"name": "atom-build-scripts-runner",
"description": "Atom build scripts runner",
"dependencies": {
"threads": "^1.6.3"
"threads": "^1.6.3",
"npm": "^6.14.16"
}
}