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
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"name": "helloworld",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"bootstrap": "node ./cli.js bootstrap",
|
|
"build": "node ./cli.js build",
|
|
"bundle": "node ./cli.js bundle ",
|
|
"install-and-run": "node ./cli.js install-and-run",
|
|
"launch": "node ./scripts/metro.js",
|
|
"lint": "eslint .",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"react": "19.3.0",
|
|
"react-native": "1000.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.25.2",
|
|
"@babel/preset-env": "^7.25.3",
|
|
"@babel/runtime": "^7.25.0",
|
|
"@react-native/babel-preset": "0.87.0-main",
|
|
"@react-native/community-cli-plugin": "0.87.0-main",
|
|
"@react-native/core-cli-utils": "*",
|
|
"@react-native/eslint-config": "0.87.0-main",
|
|
"@react-native/jest-preset": "0.87.0-main",
|
|
"@react-native/metro-config": "0.87.0-main",
|
|
"@react-native/typescript-config": "0.87.0-main",
|
|
"@types/jest": "^29.5.14",
|
|
"commander": "^12.0.0",
|
|
"eslint": "^8.19.0",
|
|
"jest": "^29.7.0",
|
|
"listr2": "^8.2.1",
|
|
"react-test-renderer": "19.3.0",
|
|
"rxjs": "^7.8.1"
|
|
},
|
|
"engines": {
|
|
"node": "^22.13.0 || ^24.3.0 || >= 26.0.0"
|
|
}
|
|
}
|