mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Summary: Replaces https://github.com/react/react-native/issues/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 https://github.com/react-native-community/template/pull/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`. Pull Request resolved: https://github.com/react/react-native/pull/58670 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 Reviewed By: christophpurrer, cortinico Differential Revision: D121634885 Pulled By: Abbondanzo fbshipit-source-id: e97c9f820d3c597233ef4a7ddaaf1b752f1f7688