mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-27 08:32:30 +03:00
Back to using npmrc.
This commit is contained in:
parent
f23d9330fa
commit
be9d74adbf
3
.npmrc
3
.npmrc
@ -1 +1,4 @@
|
||||
cache = ~/.atom/.npm
|
||||
target = 0.34.5
|
||||
runtime = electron
|
||||
disturl = https://atom.io/download/atom-shell
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user