yarn
yarn copied to clipboard
[Bug?]: misleading warning Invalid bin entry for "" (in "").
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