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
This commit is contained in:
Alex Hunt
2025-04-28 11:41:50 -07:00
committed by Facebook GitHub Bot
parent fd8a3456ca
commit 99c3aa3861
+1
View File
@@ -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"