nlm icon indicating copy to clipboard operation
nlm copied to clipboard

Shouldn't publishConfig.registry just default to npm's registry if not specified?

Open ghost opened this issue 8 years ago • 3 comments

For open source users, this would be the typical default.

ghost avatar Feb 21 '17 21:02 ghost

I kind of like it being explicit, just in case there's ever a bug in npm or yarn that doesn't force the default to the public registry, even when using a different registry in their ~/.npmrc. I know that plenty of people were surprised that defaulting behavior exists in the first place.

But I definitely would merge a PR that removes the requirement.

hybrist avatar Feb 21 '17 22:02 hybrist

True, I guess most npm users wouldn't have their own private registry, and for those that do, they've reached expert user status and should be aware of what they're doing :grin:

ghost avatar Feb 21 '17 22:02 ghost

There are tons of people in EU/Asia that use npm proxies though or people that use a local npm cache. It's not just enterprise use cases. :)

hybrist avatar Feb 21 '17 23:02 hybrist