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';
|
||||
|
||||
var program = require('commander');
|
||||
|
|
|
@ -22,8 +22,7 @@ var BASE_CONFIG = {
|
|||
|
||||
var version;
|
||||
if (packageFile.version.match('-dev')) {
|
||||
// Use the latest release (todo: update to find the latest release?)
|
||||
version = '^0.2.0-beta.3';
|
||||
version = '^' + packageFile.lastBuild;
|
||||
} else {
|
||||
version = '^' + packageFile.version;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"description": "Full node with extended capabilities using Bitcore and Bitcoin Core",
|
||||
"author": "BitPay <dev@bitpay.com>",
|
||||
"version": "0.2.0-dev",
|
||||
"lastBuild": "0.2.0-beta.3",
|
||||
"main": "./index.js",
|
||||
"bin": "./cli/bitcore-node.js",
|
||||
"repository": "git://github.com/bitpay/bitcore-node.git",
|
||||
|
|
Loading…
Reference in New Issue