Skip to content

Commit b0f6a05

Browse files
robhoganfacebook-github-bot
authored andcommitted
Fix @react-native/oss-library-example package.json#exports (#44179)
Summary: Pull Request resolved: #44179 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) Reviewed By: cortinico, dmytrorykun Differential Revision: D56414480 fbshipit-source-id: 01874cf11ae687aaf5aa5aa56075232f03d691b8
1 parent b236e15 commit b0f6a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-test-library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"main": "./index.js",
1414
"exports": {
15-
"./": "./index.js",
15+
".": "./index.js",
1616
"./package.json": "./package.json"
1717
},
1818
"scripts": {

0 commit comments

Comments
 (0)