add dir option

This commit is contained in:
Manuel Araoz 2014-03-13 16:05:04 -03:00
parent 7702f6137e
commit 25868dc8f0
1 changed files with 4 additions and 1 deletions

View File

@ -54,8 +54,11 @@ var modules = [
var createBitcore = function(opts) {
opts.dir = opts.dir || '';
// concat browser vendor files
exec('cd browser; sh concat.sh', puts);
exec('cd '+opts.dir+'browser; sh concat.sh', puts);
if (!opts.includeall && (!opts.submodules || opts.submodules.length === 0)) {
console.log('Must use either -s or -a option. For more info use the --help option');