Skip to content
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

Fix build_codegen! not finding @react-native/codegen in pnpm setups #41456

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

tido64
Copy link
Collaborator

@tido64 tido64 commented Nov 13, 2023

Summary:

build_codegen! currently assumes that @react-native/codegen gets installed next to react-native. In a pnpm setup, it's found under /~/react-native/node_modules/@react-native/codegen instead.

However, as @dmytrorykun pointed out, we don't actually need to build it outside of this repository.

Cherry-picks 3dd6a83

Changelog:

[GENERAL] [FIXED] - @react-native/codegen shouldn't be built unless it's in the repo — fixes pod install failures in pnpm setups

Test Plan:

We have a patched version of react-native working in a pnpm setup here: microsoft/rnx-kit#2811

`build_codegen!` currently assumes that `@react-native/codegen` gets
installed next to `react-native`. In a pnpm setup, it's found under
`/~/react-native/node_modules/@react-native/codegen` instead.

However, as @dmytrorykun pointed out, we don't actually need to build
it outside of this repository.
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner Pick Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants