Merge pull request #707 pinheadmz/bclient-bin-2

pkg: link bclient to bin
This commit is contained in:
Braydon Fuller 2019-03-01 09:12:40 -08:00
commit da24f09bc5
No known key found for this signature in database
GPG Key ID: F24F232D108B3AD4
4 changed files with 14 additions and 9 deletions

5
bin/bcoin-cli Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env node
'use strict';
require('bclient/bin/bcoin-cli');

5
bin/bwallet-cli Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env node
'use strict';
require('bclient/bin/bwallet-cli');

View File

@ -4,11 +4,4 @@
console.error('%s%s',
'Warning: The `bcoin cli` interface is deprecated.\n',
'Please use `bcoin-cli` ($ npm install bclient).');
if (process.argv.length > 2 && process.argv[2] === 'wallet') {
process.argv.splice(2, 1); // Evil hack.
require('bclient/bin/bwallet-cli');
} else {
require('bclient/bin/bcoin-cli');
}
'Please use `bcoin-cli` and `bwallet-cli` instead.');

View File

@ -59,7 +59,9 @@
"bcoin": "./bin/bcoin",
"bcoin-node": "./bin/node",
"bcoin-spvnode": "./bin/spvnode",
"bwallet": "./bin/bwallet"
"bwallet": "./bin/bwallet",
"bcoin-cli": "./bin/bcoin-cli",
"bwallet-cli": "./bin/bwallet-cli"
},
"scripts": {
"browserify": "browserify -s bcoin lib/bcoin-browser.js | uglifyjs -c > bcoin.js",