From 9bccd6c4ea461e2278c766c04eb64eb36205f8fb Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 6 May 2025 07:26:04 -0700 Subject: [PATCH] Explicitly exclude types_generated/ from "exports" (#51121) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51121 Previously could match via the `"./*"` subpath when `"react-native-strict-api"` is not set. Only the entry point `./types_generated/index.d.ts` should be exposed. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D74242716 fbshipit-source-id: 232c90f34fafe8fdf1a5a7ef1fec4acc191525b4 --- packages/react-native/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 6b0698bfbeb..62afd944072 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -64,6 +64,7 @@ "./src/*": null, "./third-party-podspecs/*": null, "./types/*": null, + "./types_generated/*": null, "./package.json": "./package.json" }, "jest-junit": {