Skip to content

Commit

Permalink
Fix @react-native/oss-library-example package.json#exports
Browse files Browse the repository at this point in the history
Summary:
Fix `package.json#exports` main entry point in `react-native/oss-library-example` (which is actually at `packages/react-native-test-library`), to fix a Metro resolver warning on building RN-tester.

`"./": "./index.js"` is intended as an export map entry for the main export, whereas `".": "./index.js"` is correct (see [`PACKAGE_EXPORTS_RESOLVE`](https://nodejs.org/api/esm.html) spec).

Changelog: [Internal]

(This package is not published)

Differential Revision: D56414480
  • Loading branch information
robhogan authored and facebook-github-bot committed Apr 22, 2024
1 parent 03a51da commit 116818b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-test-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"main": "./index.js",
"exports": {
"./": "./index.js",
".": "./index.js",
"./package.json": "./package.json"
},
"scripts": {
Expand Down

0 comments on commit 116818b

Please sign in to comment.