3 ms·
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
by adrianhel 8y 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.
- madeofpalk 8y agocool, so now the developer that did this will just thoughtlessly type npm publish npm instead. 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.