use correct bin path
This commit is contained in:
parent
520c4a3b22
commit
1ef3680b72
|
@ -8,7 +8,7 @@ var ext = /^win/i.test(os.platform()) ? '.exe' : '';
|
||||||
|
|
||||||
// @scope/packagename => packagename
|
// @scope/packagename => packagename
|
||||||
// { bin: { "packagename": "bin/runner" } } => "bin/runner"
|
// { bin: { "packagename": "bin/runner" } } => "bin/runner"
|
||||||
var bin = pkg.bin[pkg.name.replace(/.*\//, '')];
|
var bin = path.resolve(__dirname, '..', pkg.bin[pkg.name.replace(/.*\//, '')]);
|
||||||
|
|
||||||
function spawner(args) {
|
function spawner(args) {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@root/pathman",
|
"name": "@root/pathman",
|
||||||
"version": "0.5.3-pre.2",
|
"version": "0.5.3-pre.3",
|
||||||
"description": "A cross-platform PATH manager",
|
"description": "A cross-platform PATH manager",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"homepage": "https://git.rootprojects.org/root/pathman/src/branch/master/npm",
|
"homepage": "https://git.rootprojects.org/root/pathman/src/branch/master/npm",
|
||||||
|
|
Loading…
Reference in New Issue