mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Move apm version to apm/package.json
This commit is contained in:
@@ -26,7 +26,6 @@ function executeCommands(commands, done, index) {
|
||||
}
|
||||
|
||||
var apmInstallPath = path.resolve(__dirname, '..', 'apm');
|
||||
var apmVersion = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', 'package.json'))).apmVersion;
|
||||
if (!fs.existsSync(apmInstallPath))
|
||||
fs.mkdirSync(apmInstallPath);
|
||||
if (!fs.existsSync(path.join(apmInstallPath, 'node_modules')))
|
||||
@@ -43,7 +42,7 @@ var echoNewLine = process.platform == 'win32' ? 'echo.' : 'echo';
|
||||
|
||||
var commands = [
|
||||
{command: 'npm' + npmFlags + 'install --quiet', options: {cwd: path.resolve(__dirname, '..', 'build'), ignoreStdout: true}},
|
||||
{command: npmPath + npmFlags + 'install --quiet atom-package-manager@' + apmVersion, options: {cwd: apmInstallPath, ignoreStdout: true}},
|
||||
{command: npmPath + npmFlags + 'install --quiet', options: {cwd: apmInstallPath, ignoreStdout: true}},
|
||||
echoNewLine,
|
||||
apmPath + ' clean ' + apmFlags,
|
||||
apmPath + ' install --quiet ' + apmFlags,
|
||||
|
||||
Reference in New Issue
Block a user