Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build codegen on postinstall (#46227)
Summary: This PR solves a small issue I've encountered when working with the repo. When changing branches we often run `yarn` to reinstall dependencies (let's say we change from 0.74-stable to main). There are lots of changes between those two versions in the `react-native-codegen` package. This causes an issue when we install pods in `packages/rn-tester` the old version of codegen is used (the one cached from 0.74-stable) leading to a big error that's hard to solve at first. This PR solves this by building codegen on `postinstall`. I've seen many newcomers blocked by this issue (and rerunning `yarn` is the natural thing to do in this situation) ## Changelog: [INTERNAL] [ADDED] - Build codegen on postinstall when working with the monorepo Pull Request resolved: #46227 Test Plan: Run `yarn` Reviewed By: cipolleschi Differential Revision: D61849150 Pulled By: huntie fbshipit-source-id: 24fc5cf9b6a2510298f7bcdce59043e5dcfbfdd4
- Loading branch information