diff --git a/packages/react-native-codegen/.babelrc b/packages/react-native-codegen/.babelrc index 7cf01b22df25..92e8086a151f 100644 --- a/packages/react-native-codegen/.babelrc +++ b/packages/react-native-codegen/.babelrc @@ -1,8 +1,5 @@ { "plugins": [ - "@babel/plugin-transform-object-rest-spread", - "@babel/plugin-transform-async-to-generator", - "@babel/plugin-transform-destructuring", "@babel/plugin-transform-flow-strip-types", "@babel/plugin-syntax-dynamic-import", "@babel/plugin-transform-class-properties", diff --git a/packages/react-native-codegen/package.json b/packages/react-native-codegen/package.json index 2ee9c0f315fb..f64c4ce33d6e 100644 --- a/packages/react-native-codegen/package.json +++ b/packages/react-native-codegen/package.json @@ -38,12 +38,9 @@ "devDependencies": { "@babel/core": "^7.25.2", "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-transform-async-to-generator": "^7.24.7", "@babel/plugin-transform-class-properties": "^7.25.4", - "@babel/plugin-transform-destructuring": "^7.24.8", "@babel/plugin-transform-flow-strip-types": "^7.25.2", "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", - "@babel/plugin-transform-object-rest-spread": "^7.24.7", "@babel/plugin-transform-optional-chaining": "^7.24.8", "@babel/preset-env": "^7.25.3", "chalk": "^4.0.0", diff --git a/packages/react-native-codegen/scripts/build.js b/packages/react-native-codegen/scripts/build.js index 249b2b9401d2..8277a90987ea 100644 --- a/packages/react-native-codegen/scripts/build.js +++ b/packages/react-native-codegen/scripts/build.js @@ -36,7 +36,7 @@ const prettierConfig = JSON.parse( const SRC_DIR = 'src'; const BUILD_DIR = 'lib'; const JS_FILES_PATTERN = '**/*.js'; -const IGNORE_PATTERN = '**/__tests__/**'; +const IGNORE_PATTERN = '**/(__tests__|__test_fixtures__)/**'; const PACKAGE_DIR = path.resolve(__dirname, '../'); const fixedWidth = str => {