From 99c3aa38619e7a67451ae20756979aa0ebb117d5 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Mon, 28 Apr 2025 11:41:50 -0700 Subject: [PATCH] Add "./scripts/*" exports subpath (#50966) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50966 Should fix non-`.js` script resolution using `require.resolve` (currently breaking CI). Changelog: [Internal] Reviewed By: mdvacca, cipolleschi, rshest Differential Revision: D73786668 fbshipit-source-id: 9f793cd9df217158aa4ade0a0b41c183caefae49 --- 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 9436e6dd824..a85e34c5ae0 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -47,6 +47,7 @@ "react-native-strict-api": null, "default": "./Libraries/*.d.ts" }, + "./scripts/*": "./scripts/*", "./types/*.d.ts": { "react-native-strict-api": null, "default": "./types/*.d.ts"