|
|
|
|
|
by adrianhel
2658 days ago
|
|
They could just change it to `npm publish npm|url name` with some useful warnings. The name should be checked against package.name. Then libraries could simply add an npm script for publishing. npm publish
To publish a package to
npm, you must enter:
npm publish npm <package-name>
To publish a package to
another registry, you
must enter:
npm publish <url> <package-name>
Just as easy, just clearer. |
|
At the end of the day, there's only so much you can do. Really, a hammer shouldn't have a prompt on it confirming each hit. If it does, users will just instinctively press it and then a few months down the road they'll hit their thumb.