Skip to content

Move Community CLI discovery config into plugin package (1/2) - #58670

Closed
huntie wants to merge 1 commit into
react:mainfrom
huntie:community-cli-plugin-config
Closed

huntie wants to merge 1 commit into
react:mainfrom
huntie:community-cli-plugin-config

Conversation

@huntie

@huntie huntie commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary:

Replaces #57352.

Self-register commands from the community-cli-plugin package via react-native.config.js — meaning we can remove the redirect within packages/react-native/react-native.config.js.

Progress towards removing community-cli-plugin as a direct dep of react-native, and paired with react-native-community/template#235.

RNTester and HelloWorld list @react-native/community-cli-plugin in devDependencies, as the template now does (react-native-community/template#235).

Changelog:
[General][Breaking] - @react-native/community-cli-plugin will no longer be auto-detected from react-native. It must now be specified in devDependencies.

Test Plan:

Compared react-native config output with @react-native-community/cli 20.2.0.

RNTester

  • ✅ Commands, platforms, and project config are unchanged from main
  • ✅ Removing the new @react-native/community-cli-plugin devDependency drops bundle, start, spm, and codegen, so they are registered by plugin discovery

Template-shaped app (plugin in devDependencies, no project react-native.config.js)

  • ✅ bundle, start, spm, and codegen are registered

@meta-cla meta-cla 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 Sep 24, 2026
@huntie
huntie force-pushed the community-cli-plugin-config branch from a78f557 to 3a631a9 Compare September 24, 2026 14:13
@huntie
huntie marked this pull request as ready for review September 24, 2026 14:18
@huntie huntie changed the title Move Community CLI discovery config into plugin package Move Community CLI discovery config into plugin package (1/2) Sep 24, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Sep 24, 2026
@meta-codesync

meta-codesync Bot commented Sep 24, 2026

Copy link
Copy Markdown

@Abbondanzo has imported this pull request. If you are a Meta employee, you can view this in D121634885.

@huntie
huntie force-pushed the community-cli-plugin-config branch from 3a631a9 to c6827db Compare September 25, 2026 12:52
@meta-codesync meta-codesync Bot closed this in b26baae Sep 25, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 25, 2026
@meta-codesync

meta-codesync Bot commented Sep 25, 2026

Copy link
Copy Markdown

@Abbondanzo merged this pull request in b26baae.

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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants