cli
cli copied to clipboard
Passing registry for different package managers
Describe the Feature
Currently we use --yarn-config-options in React Native to e2e testing to use privately published monorepo packages when running our template app tests
See: https://github.com/facebook/react-native/blob/main/scripts/e2e/init-template-e2e.js#L125
We've recently switched to using npm because Yarn v3 doesn't respect the npmRegistryConfig set. See https://github.com/facebook/react-native/pull/43130
yarnConfigOptions is only used when the package manager is yarn -- from my understanding there isn't a way to pass a registry for npm`
See https://github.com/react-native-community/cli/blob/main/docs/commands.md#init
Possible Implementations
Introduce another flag for npm specifically, or let me know if there is a way to do this.