mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a469927c16
Summary: Changelog: [Internal] Okay, so before the monorepo migration we had to use two scripts separately: 1. Bumping every package with `npm run bump-all-updated-packages` 2. Aligning other packages versions with `npm run align-package-versions` The reason for it is that *before the monorepo* in a release branch cutoff process we had a step, which was removing `workspaces` keyword from `react-native` package. Without this keyword all new versions of packages will be resolved from npm (where they will be not available yet, because we have to publish them prior to it) This is not the case for our current setup, and we can actually bump packages versions and they will be resolved as a workspaces successfully Differential Revision: D44261057 fbshipit-source-id: 6095209c8183f6d84e2697fda2e9a21f8a57f73e
101 lines
4.4 KiB
JSON
101 lines
4.4 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"
|
|
},
|
|
"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",
|
|
"coveralls": "^3.1.1",
|
|
"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.0",
|
|
"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.75.1",
|
|
"metro-memory-fs": "0.75.1",
|
|
"metro-react-native-babel-transformer": "0.75.1",
|
|
"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"
|
|
}
|
|
}
|