mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c5a47abaf8
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36623 Changelog: [General][Changed] - The default `metro.config.js` in apps now extends `react-native/metro-config`, and should be updated in existing apps. ~~`react-native/rn-get-polyfills.js` is removed and should be updated to `react-native/js-polyfills` in existing apps (this is part of the new default config).~~ #publish-packages-to-npm ## Context ### React Native Metro config → React Native repo (https://github.com/facebook/react-native/pull/36502) We (the React Native team) are aiming to relocate the default Metro config for React Native out of `react-native-community/cli-plugin-metro` and **into the React Native repo + app template** as a new `react-native/metro-config` package. This is the first (and minimum viable) phase we can ship to separate the release process of Metro from RN CLI in order to reduce coupling and iterate faster for our users. **See full motivation, design, and test plan (which previewed the CLI bump) here: https://github.com/facebook/react-native/pull/36502** ## Changes NOTE: This PR is pending the inclusion of a bump to `react-native-community/cli`, and will be sequenced after https://github.com/react-native-community/cli/pull/1875 is merged. - Upgrade `react-native-community/cli` to `11.0.0`, upgrade all `metro` packages to `0.76.0` (version distributed in this CLI release). - Update the `metro.config.js` file in `packages/react-native/template/`. - Now merges defaults from `react-native/metro-config`, and can be used with CLI >= 11.0.0. - Update the `metro.config.js` files for `packages/react-native/` and `packages/rn-tester/` (these are integration test locations). - Now merges defaults from `react-native/metro-config`, and can be used with CLI >= 11.0.0. Changes to `react-native/metro-config` — `0.72.1` (prepared but not depended on yet): - Export `mergeConfig` util (removing direct `metro-config` dependency in consuming projects). - Explicitly depend on `metro-react-native-babel-transformer` and `metro-runtime` (transitively included today). Reviewed By: cortinico, blakef Differential Revision: D44099691 fbshipit-source-id: 405635dd69fd50a1e9548279eaeda3c932b5b167
101 lines
4.5 KiB
JSON
101 lines
4.5 KiB
JSON
{
|
|
"name": "@react-native/monorepo",
|
|
"private": true,
|
|
"version": "1000.0.0",
|
|
"description": "A framework for building native apps using React",
|
|
"license": "MIT",
|
|
"repository": "github:facebook/react-native",
|
|
"types": "types",
|
|
"jest-junit": {
|
|
"outputDirectory": "reports/junit",
|
|
"outputName": "js-test-results.xml"
|
|
},
|
|
"scripts": {
|
|
"start": "react-native start",
|
|
"test": "jest",
|
|
"test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"",
|
|
"flow": "flow",
|
|
"flow-check-ios": "flow check",
|
|
"flow-check-android": "flow check --flowconfig-name .flowconfig.android",
|
|
"lint": "eslint .",
|
|
"lint-ci": "./scripts/circleci/analyze_code.sh && yarn shellcheck",
|
|
"lint-java": "node ./scripts/lint-java.js",
|
|
"shellcheck": "./scripts/circleci/analyze_scripts.sh",
|
|
"clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}",
|
|
"format": "npm run prettier && npm run clang-format",
|
|
"prettier": "prettier --write \"./**/*.{js,md,yml,ts,tsx}\"",
|
|
"format-check": "prettier --list-different \"./**/*.{js,md,yml,ts,tsx}\"",
|
|
"update-lock": "npx yarn-deduplicate",
|
|
"docker-setup-android": "docker pull reactnativecommunity/react-native-android:7.0",
|
|
"docker-build-android": "docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .",
|
|
"test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh",
|
|
"test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh",
|
|
"test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh --android --js",
|
|
"test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e",
|
|
"test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation",
|
|
"test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit",
|
|
"test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e",
|
|
"test-e2e-local": "node ./scripts/test-e2e-local.js",
|
|
"test-e2e-local-clean": "node ./scripts/test-e2e-local-clean.js",
|
|
"test-ios": "./scripts/objc-test.sh test",
|
|
"test-typescript": "dtslint packages/react-native/types",
|
|
"test-typescript-offline": "dtslint --localTs node_modules/typescript/lib packages/react-native/types",
|
|
"bump-all-updated-packages": "node ./scripts/monorepo/bump-all-updated-packages",
|
|
"align-package-versions": "node -e \"require('./scripts/monorepo/align-package-versions')()\""
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"peerDependencies": {
|
|
"react": "18.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.20.0",
|
|
"@babel/eslint-parser": "^7.19.0",
|
|
"@babel/generator": "^7.20.0",
|
|
"@babel/plugin-transform-regenerator": "^7.0.0",
|
|
"@definitelytyped/dtslint": "^0.0.127",
|
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
"@reactions/component": "^2.0.2",
|
|
"@react-native/metro-config": "^0.72.0",
|
|
"@types/react": "^18.0.18",
|
|
"@typescript-eslint/parser": "^5.30.5",
|
|
"async": "^3.2.2",
|
|
"babel-plugin-transform-flow-enums": "^0.0.2",
|
|
"clang-format": "^1.8.0",
|
|
"connect": "^3.6.5",
|
|
"eslint": "^8.19.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-babel": "^5.3.1",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-ft-flow": "^2.0.1",
|
|
"eslint-plugin-jest": "^26.5.3",
|
|
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
"eslint-plugin-lint": "^1.0.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-react": "^7.30.1",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-native": "^4.0.0",
|
|
"eslint-plugin-redundant-undefined": "^0.4.0",
|
|
"eslint-plugin-relay": "^1.8.3",
|
|
"flow-bin": "^0.202.1",
|
|
"hermes-eslint": "0.8.0",
|
|
"inquirer": "^7.1.0",
|
|
"jest": "^29.2.1",
|
|
"jest-junit": "^10.0.0",
|
|
"jscodeshift": "^0.14.0",
|
|
"metro-babel-register": "0.76.0",
|
|
"metro-memory-fs": "0.76.0",
|
|
"metro-react-native-babel-transformer": "0.76.0",
|
|
"mkdirp": "^0.5.1",
|
|
"mock-fs": "^5.1.4",
|
|
"prettier": "^2.4.1",
|
|
"react": "18.2.0",
|
|
"react-test-renderer": "18.2.0",
|
|
"shelljs": "^0.8.5",
|
|
"signedsource": "^1.0.0",
|
|
"typescript": "4.1.3",
|
|
"ws": "^6.2.2"
|
|
}
|
|
}
|