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'; 'use strict';
var program = require('commander'); var program = require('commander');

View File

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

View File

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