diff --git a/package.json b/package.json index 036c137f04b022..7be34994bccf50 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,6 @@ "Libraries", "LICENSE", "local-cli", - "packages/babel-plugin-codegen", "React-Core.podspec", "react-native.config.js", "react.gradle", @@ -96,6 +95,7 @@ "@react-native-community/cli-platform-android": "^6.0.0", "@react-native-community/cli-platform-ios": "^6.0.0", "@react-native/assets": "1.0.0", + "@react-native/babel-plugin-codegen": "0.0.6", "@react-native/normalize-color": "2.0.0", "@react-native/polyfills": "2.0.0", "abort-controller": "^3.0.0", diff --git a/packages/babel-plugin-codegen/package.json b/packages/babel-plugin-codegen/package.json index 858148ff6ae1fb..56dc4f1d6c7ede 100644 --- a/packages/babel-plugin-codegen/package.json +++ b/packages/babel-plugin-codegen/package.json @@ -7,6 +7,9 @@ "url": "git@github.com:facebook/react-native.git", "directory": "packages/babel-plugin-codegen" }, + "files": [ + "index.js" + ], "dependencies": { "react-native-codegen": "*" }, diff --git a/template/babel.config.js b/template/babel.config.js index f842b77fcfb8b7..7f2e4111557fa3 100644 --- a/template/babel.config.js +++ b/template/babel.config.js @@ -1,3 +1,4 @@ module.exports = { presets: ['module:metro-react-native-babel-preset'], + plugins: ['@react-native/babel-plugin-codegen'], }; diff --git a/template/package.json b/template/package.json index 6bf7460cdbb95a..6186bd0a189872 100644 --- a/template/package.json +++ b/template/package.json @@ -16,6 +16,7 @@ "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", + "@react-native/babel-plugin-codegen": "0.0.6", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.3", "eslint": "^7.32.0", @@ -25,5 +26,8 @@ }, "jest": { "preset": "react-native" + }, + "codegenConfig": { + "libraries": [] } }