fix(build): fix npm install not to depend on minimist

Closes #5282
This commit is contained in:
vsavkin 2015-11-13 15:51:51 -08:00 committed by Victor Savkin
parent a70a919d14
commit 6d70cd78ec
2 changed files with 8 additions and 3 deletions

View File

@ -2,7 +2,14 @@
let execSync = require('child_process').execSync;
let fs = require('fs');
let minimist = require('minimist');
let minimist;
try {
minimist = require('minimist');
} catch (e) {
minimist = function(){ return {projects: ""}; };
}
let path = require('path');
let os = require('os');
let ua;

View File

@ -118,8 +118,6 @@ module.exports = function makeBrowserTree(options, destinationPath) {
var es5ModulesTree = mergeTrees([modulesTree, es6PolyfillTypings]);
es5ModulesTree = stew.debug(es5ModulesTree, {name: 'debug-es5'});
var scriptPathPatternReplacement = {
match: '@@PATH',
replacement: function(replacement, relativePath) {