diff --git a/packages/react-native/package.json b/packages/react-native/package.json index f61df1f877d..59c523768ef 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -26,7 +26,25 @@ "bin": { "react-native": "cli.js" }, + "main": "./index.js", "types": "types", + "exports": { + ".": "./index.js", + "./*": "./*.js", + "./*.js": "./*.js", + "./Libraries/*.d.ts": "./Libraries/*.d.ts", + "./types/*.d.ts": "./types/*.d.ts", + "./gradle/*": null, + "./React/*": null, + "./ReactAndroid/*": null, + "./ReactApple/*": null, + "./ReactCommon/*": null, + "./sdks/*": null, + "./src/*": null, + "./third-party-podspecs/*": null, + "./types/*": null, + "./package.json": "./package.json" + }, "jest-junit": { "outputDirectory": "reports/junit", "outputName": "js-test-results.xml" @@ -84,11 +102,6 @@ "sdks/hermesc", "settings.gradle.kts", "src", - "template.config.js", - "template", - "!template/node_modules", - "!template/package-lock.json", - "!template/yarn.lock", "third-party-podspecs", "types" ],