Skip to content

Commit

Permalink
Fix double bitcore-lib loading issue
Browse files Browse the repository at this point in the history
- Pass along services location and additional services for the default.
- Reference specific commit of bitcore-build and remove mode hints.
  • Loading branch information
Braydon Fuller committed Oct 20, 2015
1 parent 8646e4e commit e9015d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 5 additions & 3 deletions bin/bitcore
@@ -1,5 +1,7 @@
#!/usr/bin/env node
// vi: ft=javascript -*- mode: JavaScript; -*-

var node = require('bitcore-node');
node.cli.bitcore();
var bitcore = require('bitcore-node/lib/cli/bitcore');
var path = require('path');
var servicesPath = path.resolve(__dirname, '../');
var additionalServices = ['insight-api', 'insight-ui'];
bitcore(servicesPath, additionalServices);
10 changes: 7 additions & 3 deletions bin/bitcored
@@ -1,5 +1,9 @@
#!/usr/bin/env node
// vi: ft=javascript -*- mode: JavaScript; -*-

var node = require('bitcore-node');
node.cli.bitcored();
'use strict';

var path = require('path');
var bitcored = require('bitcore-node/lib/cli/bitcored');
var servicesPath = path.resolve(__dirname, '../');
var additionalServices = ['insight-api', 'insight-ui'];
bitcored(servicesPath, additionalServices);
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -90,7 +90,7 @@
"insight-ui": "^0.3.0"
},
"devDependencies": {
"bitcore-build": "bitpay/bitcore-build",
"bitcore-build": "bitpay/bitcore-build#36e15f",
"brfs": "^1.2.0",
"chai": "^1.10.0",
"gulp": "^3.8.10",
Expand Down

0 comments on commit e9015d6

Please sign in to comment.