-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing registry for different package managers #2320
Comments
hey @lunaleaps! 👋 to make Yarn working with custom
So I think that would work for Core's use case for now, right? Let me know if I'm missing something. Edit: I see @huntie referenced this issue inside Yarn repo, I believe it is fixed inside newer Yarn versions (?) Do you have any CI jobs that are showing that it isn't working? 🤔 |
@szymonrybczak Thanks for looking, my question is how do we set a registry for We want to use Here is the only place I see where yarnConfigOptions is used:
|
Yes, I think we can create also more generic I have doubts why you moved there from Yarn to NPM? Since Yarn 3.x seems to support |
Yea these are the CI tests that were failing: https://app.circleci.com/pipelines/github/facebook/react-native/42789/workflows/9
It looks like yarn v1.22.19, yea it sounds worthwhile to try upgrading. |
Yea, because while creating project with CLI we're installing package in temporary path, and in React Native case on CI there's Yarn v1 installed so it is ignoring |
There hasn't been any activity on this issue in the past 3 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 7 days. |
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 testsSee: 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 thenpmRegistryConfig
set. See facebook/react-native#43130yarnConfigOptions
is only used when the package manager isyarn -- 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.
The text was updated successfully, but these errors were encountered: