Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem w/ subdirs in packag.json bin #115

Closed
F1LT3R opened this issue Apr 27, 2018 · 0 comments

Comments

@F1LT3R
Copy link

commented Apr 27, 2018

I am getting "node/no-unpublished-bin" when I place my bin files in a sub directory.

screen shot 2018-04-27 at 11 57 21 am

screen shot 2018-04-27 at 11 58 33 am

./package.json

{
  "name": "test",
  "bin": {
    "test": "lib/test.js"
  },
  "files": [
  	"lib/test.js"
  ]
}

./lib/test.js

#!/usr/bin/env node

console.log(1);

Is this expected? I'm reading the no-unpublished-bin doc, but I'm not seeing why NPM would ignore my ./lib/test.js. Especially seeing npm link and then test logs 1 to my console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.