bin-wrapper
bin-wrapper copied to clipboard
Use binary destination set in package.json
Currently, this will probably break if .use()
is something like path/bin
, and if it differs from the binary name in package.json, e.g:
.use('asd.exe');
{
"bin": {
"asd": "bin/asd"
}
}
Fixes #31.
ping @kevva
Yeah, is module.parent.filename
reliable to use to get caller modules package.json
?
Yes, but you have to delete the cache. See https://github.com/sindresorhus/meow/blob/d055091dff7a9dc9a75bc619852a4ffacda2d6fb/index.js#L8-L10
Hello! Is there any chance that you will merge this feature to the master? I can help with resolving conflicts and updating branch. I really want to have this feature :)