bitcore/bin/bitcore

12 lines
382 B
JavaScript
Executable File

#!/usr/bin/env node
if (parseInt(process.version.split('.')[0].slice(1)) < 8) {
throw new Error('Bitcore requires Node version 8 or higher.');
}
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);