From 5b0889a043d65c989fad8f2f4657b72a0c4024fb Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Sat, 7 Nov 2015 00:50:00 -0500 Subject: [PATCH] Fixed issue with exporting bitcore-lib module name. --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 46e26ed..e5d5bd9 100644 --- a/index.js +++ b/index.js @@ -53,7 +53,6 @@ function startGulp(name, opts) { opts = opts || {}; var browser = !opts.skipBrowser; - var isSubmodule = name ? true : false; var fullname = name ? 'bitcore-' + name : 'bitcore'; var files = ['lib/**/*.js']; var tests = ['test/**/*.js']; @@ -102,10 +101,10 @@ function startGulp(name, opts) { var browserifyCommand; - if (isSubmodule) { + if (name !== 'lib') { browserifyCommand = buildBinPath + 'browserify --require ./index.js:' + fullname + ' --external bitcore-lib -o ' + fullname + '.js'; } else { - browserifyCommand = buildBinPath + 'browserify --require ./index.js:bitcore -o bitcore.js'; + browserifyCommand = buildBinPath + 'browserify --require ./index.js:bitcore-lib -o bitcore-lib.js'; } gulp.task('browser:uncompressed', shell.task([