Include script env and include a build version.

This commit is contained in:
Braydon Fuller 2015-08-20 18:20:50 -04:00
parent 69056db529
commit 6c7501b45f
3 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
'use strict';
var program = require('commander');

View File

@ -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;
}

View File

@ -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",