Is there an existing issue for this?
Current Behavior
In the package.json's bin documentation, it's documented that you can use an object with one or more bin file references OR use a single string.
Unfortunately, this is now marked as "error in your package.json when publishing".

Expected Behavior
I expected this notation to not be marked as an error, as the documentation clearly documents this as a valid option.
Steps To Reproduce
$ npm init
- Add a bin file
- Configure
"bin": "path/to/file.js"
$ npm publish

Environment
- npm: 10.2.4
- Node: 20.10.0
- OS: MacOS Sonoma 14.2.1
- platform: Macbook Pro (14", 2023)