Back to using npmrc.

This commit is contained in:
joshaber 2015-12-28 15:10:01 -05:00
parent f23d9330fa
commit be9d74adbf
2 changed files with 7 additions and 11 deletions

3
.npmrc
View File

@ -1 +1,4 @@
cache = ~/.atom/.npm
target = 0.34.5
runtime = electron
disturl = https://atom.io/download/atom-shell

View File

@ -68,11 +68,9 @@ function bootstrap() {
var buildInstallOptions = {cwd: path.resolve(__dirname, '..', 'build')};
var apmInstallCommand = npmPath + npmFlags + '--target=0.10.35 ' + 'install';
var apmInstallOptions = {cwd: apmInstallPath};
var moduleInstallCommand = apmPath + ' install' + apmFlags;
var dedupeApmCommand = apmPath + ' dedupe' + apmFlags;
var electronVersion = require('../package.json').electronVersion;
var moduleInstallCommand = apmPath + ' install ' + '--target=' + electronVersion + ' --runtime=electron --disturl=https://atom.io/download/atom-shell ' + apmFlags;
if (process.argv.indexOf('--no-quiet') === -1) {
buildInstallCommand += ' --loglevel error';
apmInstallCommand += ' --loglevel error';
@ -98,14 +96,9 @@ function bootstrap() {
message: 'Installing apm...',
options: apmInstallOptions
},
{
command: apmPath + ' clean' + apmFlags,
message: 'Deleting old packages...'
},
{
command: moduleInstallCommand,
},
dedupeApmCommand + ' ' + packagesToDedupe.join(' ')
apmPath + ' clean' + apmFlags,
moduleInstallCommand,
dedupeApmCommand + ' ' + packagesToDedupe.join(' '),
];
process.chdir(path.dirname(__dirname));