Skip to content

Conversation

@tido64
Copy link
Member

@tido64 tido64 commented Nov 13, 2023

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary:

In pnpm setups, codegen will fail during build because it cannot find its dependencies. Some of the dependencies it relies on at runtime are currently declared under devDependencies. This change moves them to dependencies.

Cherry-picks c58e19e.

Changelog:

[GENERAL] [FIXED] - Fix react-native/codegen not being able to resolve dependencies in pnpm setups

Test Plan:

We are currently trying to enable pnpm mode in rnx-kit and hit this issue. We've patched this package locally and it works.

In pnpm setups, codegen will fail during build because it cannot find
its dependencies. Some of the dependencies it relies on at runtime are
currently declared under `devDependencies`. This change moves them to
`dependencies`.
@tido64 tido64 merged commit 6d2fd33 into 0.72-stable Nov 17, 2023
@tido64 tido64 deleted the tido/0.72/codegen-npm-dependencies branch November 17, 2023 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants