diff --git a/.gitignore b/.gitignore index 060a7e07c4d2..12c5fbd4402a 100644 --- a/.gitignore +++ b/.gitignore @@ -41,8 +41,9 @@ package-lock.json *.tsbuildinfo -# https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored but nested for e2e directories +# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored but nested for e2e directories **/.yarn/* +!**/.yarn/patches !**/.yarn/releases !**/.yarn/plugins !**/.yarn/sdks diff --git a/examples/react-native/.babelrc.js b/examples/react-native/babel.config.js similarity index 100% rename from examples/react-native/.babelrc.js rename to examples/react-native/babel.config.js diff --git a/package.json b/package.json index 3f211eb5bcf8..158dbd0c1276 100644 --- a/package.json +++ b/package.json @@ -154,7 +154,6 @@ "@types/jest/pretty-format": "^25.1.0", "babel-jest": "workspace:*", "jest": "workspace:*", - "jest-environment-node": "workspace:*", - "react-native": "patch:react-native@0.64.0#./patches/react-native.patch" + "jest-environment-node": "workspace:*" } } diff --git a/patches/react-native.patch b/patches/react-native.patch deleted file mode 100644 index 0720ad2a58f4..000000000000 --- a/patches/react-native.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/jest/preprocessor.js b/jest/preprocessor.js -index 5920c0a6f23c056f27366fabf32dd13c6f86465b..2658e52f9127ac58849e7f830f6342d8b683672c 100644 ---- a/jest/preprocessor.js -+++ b/jest/preprocessor.js -@@ -64,8 +64,6 @@ module.exports = { - [require('@babel/plugin-transform-flow-strip-types')], - [ - require('@babel/plugin-proposal-class-properties'), -- // use `this.foo = bar` instead of `this.defineProperty('foo', ...)` -- {loose: true}, - ], - [require('@babel/plugin-transform-computed-properties')], - [require('@babel/plugin-transform-destructuring')], diff --git a/yarn.lock b/yarn.lock index 9a01713c03f4..4a0f5c11271b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18119,50 +18119,6 @@ react-native@0.64.0: languageName: node linkType: hard -"react-native@patch:react-native@0.64.0#./patches/react-native.patch::locator=%40jest%2Fmonorepo%40workspace%3A.": - version: 0.64.0 - resolution: "react-native@patch:react-native@npm%3A0.64.0#./patches/react-native.patch::version=0.64.0&hash=c73352&locator=%40jest%2Fmonorepo%40workspace%3A." - dependencies: - "@jest/create-cache-key-function": ^26.5.0 - "@react-native-community/cli": ^5.0.1-alpha.0 - "@react-native-community/cli-platform-android": ^5.0.1-alpha.0 - "@react-native-community/cli-platform-ios": ^5.0.1-alpha.0 - "@react-native/assets": 1.0.0 - "@react-native/normalize-color": 1.0.0 - "@react-native/polyfills": 1.0.0 - abort-controller: ^3.0.0 - anser: ^1.4.9 - base64-js: ^1.1.2 - event-target-shim: ^5.0.1 - hermes-engine: ~0.7.0 - invariant: ^2.2.4 - jsc-android: ^245459.0.0 - metro-babel-register: 0.64.0 - metro-react-native-babel-transformer: 0.64.0 - metro-runtime: 0.64.0 - metro-source-map: 0.64.0 - nullthrows: ^1.1.1 - pretty-format: ^26.5.2 - promise: ^8.0.3 - prop-types: ^15.7.2 - react-devtools-core: ^4.6.0 - react-native-codegen: ^0.0.6 - react-refresh: ^0.4.0 - regenerator-runtime: ^0.13.2 - scheduler: ^0.20.1 - shelljs: ^0.8.4 - stacktrace-parser: ^0.1.3 - use-subscription: ^1.0.0 - whatwg-fetch: ^3.0.0 - ws: ^6.1.4 - peerDependencies: - react: 17.0.1 - bin: - react-native: cli.js - checksum: 5685b7f4d3bbf967ca3d90365cc5fc3d64421bc22b2b08ccc548d2d4e9e9211d0e52abde0fca807203564257d187d3d955cb05a66114eb17f1958305cc30dce2 - languageName: node - linkType: hard - "react-refresh@npm:^0.4.0": version: 0.4.3 resolution: "react-refresh@npm:0.4.3"