Move apm version to apm/package.json

This commit is contained in:
Kevin Sawicki
2014-04-24 15:43:19 -07:00
parent 950964eee3
commit e8090b16f3
5 changed files with 13 additions and 4 deletions

View File

@@ -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,