-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Opening this to discuss moving to registry.npmjs.org now that they've moved to Cloudflare.
Assuming we want to deprecate the Yarn registry (which seems to be the correct assumption), we need a plan for how to do it because a lot of infrastructure now depends on it.
For starters, we can never ever get rid of registry.yarnpkg.com completely. We shouldn't break those systems that depend on it, and it costs nothing so why would we not just leave it in place permanently.
Also, we cannot switch the registry config over outside of a major version as there are many CI systems that whitelist registry.yarnpkg.com and would break if it was switched.
However, we can start recommending that people change their Yarn configs to the npm registry immediately and start outputting deprecation warnings. Then in Yarn 2.0 we can switch the default registry over.
We could also consider putting something inside yarn.lock which configures the preferred registry and for new yarn.lock files we can use the non registry.