Skip to content

Problem w/ subdirs in packag.json bin #115

Closed
@F1LT3R

Description

@F1LT3R

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @F1LT3R@mysticatea

      Issue actions

        Problem w/ subdirs in packag.json bin · Issue #115 · mysticatea/eslint-plugin-node