Skip to content

community-cli-plugin: Refactor CLI build command to use Metro.runBuild#51124

Closed
robhogan wants to merge 1 commit into
mainfrom
export-D74151840
Closed

community-cli-plugin: Refactor CLI build command to use Metro.runBuild#51124
robhogan wants to merge 1 commit into
mainfrom
export-D74151840

Conversation

@robhogan
Copy link
Copy Markdown
Contributor

@robhogan robhogan commented May 6, 2025

Summary:
Metro 0.82.3's runBuild API now supports retrieving assets and passing through unstable_transformProfile, so we can use it directly in the implementation of community-cli-plugin's bundle command with no loss of function or API change.

This simplifies the implementation by re-using Metro's, and removes use of Metro internal APIs.

Changelog: [Internal]

Differential Revision: D74151840

@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: Facebook Partner: Facebook Partner labels May 6, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74151840

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2025

Job Summary for Gradle

Test All :: build_android
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
react-native-github publishAllToMavenTempLocal build 8.14 Build Scan not published

@robhogan robhogan force-pushed the export-D74151840 branch from 4906c5d to d0b9571 Compare May 23, 2025 15:27
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74151840

@robhogan robhogan force-pushed the export-D74151840 branch 2 times, most recently from 8272ac8 to 08053df Compare May 23, 2025 15:33
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74151840

robhogan added a commit that referenced this pull request May 23, 2025
#51124)

Summary:
Pull Request resolved: #51124

Metro 0.82.3's `runBuild` API now supports retrieving assets and passing through `unstable_transformProfile`, and fine control of output paths via `bundleOut`/`sourcemapOut`, so we can use it directly in the implementation of `community-cli-plugin`'s `bundle` command with no loss of function or API change.

This simplifies the implementation by re-using Metro's, and removes use of Metro internal APIs.

Reviewed By: huntie

Differential Revision: D74151840
@robhogan robhogan force-pushed the export-D74151840 branch from 08053df to 030c156 Compare May 23, 2025 15:37
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74151840

@robhogan robhogan force-pushed the export-D74151840 branch from 79a9bb8 to a067efe Compare May 26, 2025 10:00
#51124)

Summary:
Pull Request resolved: #51124

Metro 0.82.3's `runBuild` API now supports retrieving assets and passing through `unstable_transformProfile`, and fine control of output paths via `bundleOut`/`sourcemapOut`, so we can use it directly in the implementation of `community-cli-plugin`'s `bundle` command with no loss of function or API change.

This simplifies the implementation by re-using Metro's, and removes use of Metro internal APIs.

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D74151840
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74151840

@robhogan robhogan force-pushed the export-D74151840 branch from a067efe to 342afb9 Compare May 26, 2025 10:04
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in 342afb9

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label May 26, 2025
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in a3447d6

When will my fix make it into a release? | How to file a pick request?

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 Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants