use correct bin path

This commit is contained in:
AJ ONeal 2019-08-09 03:45:29 -06:00
parent 520c4a3b22
commit 1ef3680b72
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ var ext = /^win/i.test(os.platform()) ? '.exe' : '';
// @scope/packagename => packagename
// { 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) {
return new Promise(function(resolve, reject) {

View File

@ -1,6 +1,6 @@
{
"name": "@root/pathman",
"version": "0.5.3-pre.2",
"version": "0.5.3-pre.3",
"description": "A cross-platform PATH manager",
"main": "index.js",
"homepage": "https://git.rootprojects.org/root/pathman/src/branch/master/npm",