yarn icon indicating copy to clipboard operation
yarn copied to clipboard

[Bug?]: misleading warning Invalid bin entry for "" (in "").

Open Et7f3 opened this issue 9 months ago • 0 comments

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

I get this error message when name field is absent. I expected a message similar to license:

warning package.json: No license field

To reproduce

package.json:

{
  "bin": "app.js",
  "dependencies": {
    "webpack": "^5.89.0"
  },
  "license": "UNLICENSED"
}

add a name and error disappear

Environment

yarn v1.22.19

Additional context

No response

Et7f3 avatar Nov 12 '23 03:11 Et7f3