Affected Packages
pkg:@changesets/cli
Problem
Looks like we can only get the npm registry from packageJson.publishConfig or process.env.npm_config_registry when running npm info. Is there a way to get npm registry from .npmrc file?

Also, is npm_config_registry safe to rely on? Because it's not documented.
Proposed solution
Read npm registry in the following priorities:
packages/my-package/packageJson.publishConfig
packages/my-package/.npmrc
root/.npmrc
Affected Packages
pkg:@changesets/cliProblem
Looks like we can only get the npm registry from
packageJson.publishConfigorprocess.env.npm_config_registrywhen runningnpm info. Is there a way to get npm registry from.npmrcfile?Also, is
npm_config_registrysafe to rely on? Because it's not documented.Proposed solution
Read
npm registryin the following priorities:packages/my-package/packageJson.publishConfigpackages/my-package/.npmrcroot/.npmrc