|
|
|
|
|
by seniorsassycat
2660 days ago
|
|
Adding 'private: true' to the package.json prevents publishing to _any_ registry, including a corporate proxy. Adding a string or regex option for private that would only publish to matching registries may prevent issues like this. I ask for regex only because our corp proxy binds to a random port reach time it runs so a static string wouldn't be flexible enough. |
|
Took a while for Ruby to get it but for the last 5 years you have default config for self-hosted sources whenever you make a new gem.
Of course, npm is unique in being privately funded. It doesn’t want you doing that.
Benefit of the doubt says that they thought they were publishing privately.
Going back to Ruby, you will fail a bunch of CI steps just by leaving defaults in place.