From b1c038b4d04aa6933dd788d86909ed699a39882a Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Thu, 13 Mar 2014 16:05:04 -0300 Subject: [PATCH] add dir option --- browser/build.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser/build.js b/browser/build.js index 101efb1..aec2603 100644 --- a/browser/build.js +++ b/browser/build.js @@ -56,8 +56,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');