Include script env and include a build version.
This commit is contained in:
parent
69056db529
commit
6c7501b45f
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var program = require('commander');
|
var program = require('commander');
|
||||||
|
|||||||
@ -22,8 +22,7 @@ var BASE_CONFIG = {
|
|||||||
|
|
||||||
var version;
|
var version;
|
||||||
if (packageFile.version.match('-dev')) {
|
if (packageFile.version.match('-dev')) {
|
||||||
// Use the latest release (todo: update to find the latest release?)
|
version = '^' + packageFile.lastBuild;
|
||||||
version = '^0.2.0-beta.3';
|
|
||||||
} else {
|
} else {
|
||||||
version = '^' + packageFile.version;
|
version = '^' + packageFile.version;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
"description": "Full node with extended capabilities using Bitcore and Bitcoin Core",
|
"description": "Full node with extended capabilities using Bitcore and Bitcoin Core",
|
||||||
"author": "BitPay <dev@bitpay.com>",
|
"author": "BitPay <dev@bitpay.com>",
|
||||||
"version": "0.2.0-dev",
|
"version": "0.2.0-dev",
|
||||||
|
"lastBuild": "0.2.0-beta.3",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"bin": "./cli/bitcore-node.js",
|
"bin": "./cli/bitcore-node.js",
|
||||||
"repository": "git://github.com/bitpay/bitcore-node.git",
|
"repository": "git://github.com/bitpay/bitcore-node.git",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user