[BUG] npm publish
complains on bin
field examples from npm docs
#7302
Labels
Bug
thing that needs fixing
Documentation
documentation related issue
Priority 2
secondary priority issue
Release 10.x
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm publish
complains and auto correct thebin
field examples from npm docs.Expected Behavior
Seems like the examples are correct, there is no need to complain or alter the code.
Steps To Reproduce
First example:
npm init -y
cli.js
bin
field entry from npm docs topackage.json
:Second example:
npm init -y
cli.js
bin
field entry from npm docs topackage.json
:Finally run
npm publish --dry-run
. In both casesnpm
complains:Environment
The text was updated successfully, but these errors were encountered: