-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Migrate codegen to shared build setup, remove package build pre-step from RNTester #47552
Open
huntie
wants to merge
2
commits into
facebook:main
Choose a base branch
from
huntie:export-D51465053
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facebook-github-bot
added
the
CLA Signed
This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
label
Nov 11, 2024
This pull request was exported from Phabricator. Differential Revision: D51465053 |
huntie
force-pushed
the
export-D51465053
branch
from
November 11, 2024 16:57
50cd30a
to
dfb002c
Compare
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Nov 11, 2024
…from RNTester (facebook#47552) Summary: NOTE: Resubmission of D49370200. This simplifies the use of Codegen when creating dev builds of `rn-tester` in the monorepo. It now runs from source for this internal scenario, and this package is now built using the shared monorepo build setup. Changes: - Migrate `packages/react-native-codegen` to the shared `yarn build` setup. - Update package to use `"exports"` field and wrap entry point modules with `babel-register` (NOTE: This is only required for each entry point internally used in the monorepo). - Remove `BuildCodegenCLITask` task from Android build. - Remove Codegen `build.sh` call from iOS build, use `require.resolve` for `combine-js-to-schema-cli.js` entry point. Externally significant FYIs: - `react-native/codegen` is converted to use the `"exports"` field — it should export all `.js` files, as before. - `codegenPath` is now ignored and marked as deprecated on `ReactExtensions.kt`. NOTE: TypeScript auto-generation is not yet enabled on this package, since it uses CommonJS `module.exports` syntax (unsupported by `flow-api-translator`). Changelog: [Internal] Reviewed By: dmytrorykun Differential Revision: D51465053
This pull request was exported from Phabricator. Differential Revision: D51465053 |
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Nov 11, 2024
…from RNTester (facebook#47552) Summary: NOTE: Resubmission of D49370200. This simplifies the use of Codegen when creating dev builds of `rn-tester` in the monorepo. It now runs from source for this internal scenario, and this package is now built using the shared monorepo build setup. Changes: - Migrate `packages/react-native-codegen` to the shared `yarn build` setup. - Update package to use `"exports"` field and wrap entry point modules with `babel-register` (NOTE: This is only required for each entry point internally used in the monorepo). - Remove `BuildCodegenCLITask` task from Android build. - Remove Codegen `build.sh` call from iOS build, use `require.resolve` for `combine-js-to-schema-cli.js` entry point. Externally significant FYIs: - `react-native/codegen` is converted to use the `"exports"` field — it should export all `.js` files, as before. - `codegenPath` is now ignored and marked as deprecated on `ReactExtensions.kt`. NOTE: TypeScript auto-generation is not yet enabled on this package, since it uses CommonJS `module.exports` syntax (unsupported by `flow-api-translator`). Changelog: [Internal] Reviewed By: dmytrorykun Differential Revision: D51465053
huntie
force-pushed
the
export-D51465053
branch
from
November 11, 2024 17:44
dfb002c
to
19860e6
Compare
This pull request was exported from Phabricator. Differential Revision: D51465053 |
huntie
added a commit
to huntie/react-native
that referenced
this pull request
Nov 12, 2024
…from RNTester (facebook#47552) Summary: NOTE: Resubmission of D49370200. This simplifies the use of Codegen when creating dev builds of `rn-tester` in the monorepo. It now runs from source for this internal scenario, and this package is now built using the shared monorepo build setup. Changes: - Migrate `packages/react-native-codegen` to the shared `yarn build` setup. - Update package to use `"exports"` field and wrap entry point modules with `babel-register` (NOTE: This is only required for each entry point internally used in the monorepo). - Remove `BuildCodegenCLITask` task from Android build. - Remove Codegen `build.sh` call from iOS build, use `require.resolve` for `combine-js-to-schema-cli.js` entry point. Externally significant FYIs: - `react-native/codegen` is converted to use the `"exports"` field — it should export all `.js` files, as before. - `codegenPath` is now ignored and marked as deprecated on `ReactExtensions.kt`. NOTE: TypeScript auto-generation is not yet enabled on this package, since it uses CommonJS `module.exports` syntax (unsupported by `flow-api-translator`). Changelog: [Internal] Reviewed By: dmytrorykun Differential Revision: D51465053
huntie
force-pushed
the
export-D51465053
branch
from
November 12, 2024 12:18
19860e6
to
ef07d38
Compare
This pull request was exported from Phabricator. Differential Revision: D51465053 |
Summary: Update shared monorepo build script: - Refactor entry point discovery and file iteration - Add support for "exports" subpath patterns (skip considering as entry point with warning) This is required for the incoming migration of `react-native-codegen` to this build setup (D51465053). Changelog: [Internal] Differential Revision: D66121262
…from RNTester (facebook#47552) Summary: Pull Request resolved: facebook#47552 NOTE: Resubmission of D49370200. This simplifies the use of Codegen when creating dev builds of `rn-tester` in the monorepo. It now runs from source for this internal scenario, and this package is now built using the shared monorepo build setup. Changes: - Migrate `packages/react-native-codegen` to the shared `yarn build` setup. - Update package to use `"exports"` field and wrap entry point modules with `babel-register` (NOTE: This is only required for each entry point internally used in the monorepo). - Remove `BuildCodegenCLITask` task from Android build. - Remove Codegen `build.sh` call from iOS build, use `require.resolve` for `combine-js-to-schema-cli.js` entry point. Externally significant FYIs: - `react-native/codegen` is converted to use the `"exports"` field — it should export all `.js` files, as before. - `codegenPath` is now ignored and marked as deprecated on `ReactExtensions.kt`. NOTE: TypeScript auto-generation is not yet enabled on this package, since it uses CommonJS `module.exports` syntax (unsupported by `flow-api-translator`). Changelog: [Internal] Reviewed By: dmytrorykun Differential Revision: D51465053
This pull request was exported from Phabricator. Differential Revision: D51465053 |
huntie
force-pushed
the
export-D51465053
branch
from
November 19, 2024 13:15
ef07d38
to
38ff810
Compare
facebook-github-bot
pushed a commit
that referenced
this pull request
Dec 2, 2024
Summary: building RN tester with 0.77 rc-0 doesn't work now because of `java.io.IOException: No such file or directory` on line 48. `buildDirectory` is a Gradle property representing a file #47552 removes this file altogether so feel free to close if that one is the "right one" ## Changelog: [ANDROID] [FIXED] - fix IOException in `BuildCodegenCLITask` Pull Request resolved: #48008 Test Plan: After this change, building RN tester works. Reviewed By: cortinico Differential Revision: D66650038 Pulled By: robhogan fbshipit-source-id: 11cd83493fa118c6b79d11c9113228dd3971a803
robhogan
pushed a commit
that referenced
this pull request
Dec 2, 2024
Summary: building RN tester with 0.77 rc-0 doesn't work now because of `java.io.IOException: No such file or directory` on line 48. `buildDirectory` is a Gradle property representing a file #47552 removes this file altogether so feel free to close if that one is the "right one" ## Changelog: [ANDROID] [FIXED] - fix IOException in `BuildCodegenCLITask` Pull Request resolved: #48008 Test Plan: After this change, building RN tester works. Reviewed By: cortinico Differential Revision: D66650038 Pulled By: robhogan fbshipit-source-id: 11cd83493fa118c6b79d11c9113228dd3971a803
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.
fb-exported
p: Facebook
Partner: Facebook
Partner
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
NOTE: Resubmission of D49370200.
This simplifies the use of Codegen when creating dev builds of
rn-tester
in the monorepo. It now runs from source for this internal scenario, and this package is now built using the shared monorepo build setup.Changes:
packages/react-native-codegen
to the sharedyarn build
setup."exports"
field and wrap entry point modules withbabel-register
(NOTE: This is only required for each entry point internally used in the monorepo).BuildCodegenCLITask
task from Android build.build.sh
call from iOS build, userequire.resolve
forcombine-js-to-schema-cli.js
entry point.Externally significant FYIs:
react-native/codegen
is converted to use the"exports"
field — it should export all.js
files, as before.codegenPath
is now ignored and marked as deprecated onReactExtensions.kt
.NOTE: TypeScript auto-generation is not yet enabled on this package, since it uses CommonJS
module.exports
syntax (unsupported byflow-api-translator
).Changelog: [Internal]
Reviewed By: dmytrorykun
Differential Revision: D51465053