mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Ensure script/bootstrap works after cleaning dependencies up
This commit is contained in:
parent
77cba66c2d
commit
14611926ac
@ -21,15 +21,12 @@ const appMetadata = require(path.join(repositoryRootPath, 'package.json'))
|
||||
const apmMetadata = require(path.join(apmRootPath, 'package.json'))
|
||||
const channel = getChannel()
|
||||
|
||||
const apmBinPath = getApmBinPath()
|
||||
const npmBinPath = getNpmBinPath()
|
||||
|
||||
module.exports = {
|
||||
appMetadata, apmMetadata, channel,
|
||||
repositoryRootPath, apmRootPath, scriptRootPath,
|
||||
buildOutputPath, docsOutputPath, intermediateAppPath, symbolsPath,
|
||||
electronDownloadPath, atomHomeDirPath, homeDirPath,
|
||||
apmBinPath, npmBinPath
|
||||
getApmBinPath, getNpmBinPath
|
||||
}
|
||||
|
||||
function getChannel () {
|
||||
|
@ -8,7 +8,7 @@ const CONFIG = require('../config')
|
||||
module.exports = function () {
|
||||
console.log('Installing apm')
|
||||
childProcess.execFileSync(
|
||||
CONFIG.npmBinPath,
|
||||
CONFIG.getNpmBinPath(),
|
||||
['--global-style', '--loglevel=error', 'install'],
|
||||
{env: process.env, cwd: CONFIG.apmRootPath}
|
||||
)
|
||||
|
@ -17,7 +17,7 @@ module.exports = function () {
|
||||
installEnv.npm_config_target_arch = 'ia32'
|
||||
}
|
||||
childProcess.execFileSync(
|
||||
CONFIG.apmBinPath,
|
||||
CONFIG.getApmBinPath(),
|
||||
['--loglevel=error', 'install'],
|
||||
{env: installEnv, cwd: CONFIG.repositoryRootPath, stdio: 'inherit'}
|
||||
)
|
||||
|
@ -8,7 +8,7 @@ const CONFIG = require('../config')
|
||||
module.exports = function () {
|
||||
console.log('Installing script dependencies')
|
||||
childProcess.execFileSync(
|
||||
CONFIG.npmBinPath,
|
||||
CONFIG.getNpmBinPath(),
|
||||
['--loglevel=error', 'install'],
|
||||
{env: process.env, cwd: CONFIG.scriptRootPath}
|
||||
)
|
||||
|
@ -25,7 +25,7 @@ function verifyNode () {
|
||||
}
|
||||
|
||||
function verifyNpm () {
|
||||
const stdout = childProcess.execFileSync(CONFIG.npmBinPath, ['--version'], {env: process.env})
|
||||
const stdout = childProcess.execFileSync(CONFIG.getNpmBinPath(), ['--version'], {env: process.env})
|
||||
const fullVersion = stdout.toString().trim()
|
||||
const majorVersion = fullVersion.split('.')[0]
|
||||
if (majorVersion >= 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user