bin-wrapper icon indicating copy to clipboard operation
bin-wrapper copied to clipboard

Use binary destination set in package.json

Open kevva opened this issue 10 years ago • 4 comments

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.

kevva avatar Dec 30 '14 13:12 kevva

ping @kevva

sindresorhus avatar Mar 14 '15 14:03 sindresorhus

Yeah, is module.parent.filename reliable to use to get caller modules package.json?

kevva avatar Mar 14 '15 18:03 kevva

Yes, but you have to delete the cache. See https://github.com/sindresorhus/meow/blob/d055091dff7a9dc9a75bc619852a4ffacda2d6fb/index.js#L8-L10

sindresorhus avatar Jun 20 '15 15:06 sindresorhus

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 :)

grushikhin avatar Apr 06 '18 15:04 grushikhin