Skip to content

Commit 27712a9

Browse files
TasseDeCafezibs
andauthored
fix: correct package.json exports format for Metro compatibility (#581)
Co-authored-by: Eli Zibin <1131641+zibs@users.noreply.github.com>
1 parent 7c1f7d0 commit 27712a9

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.changeset/brave-cherries-sing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"victory-native": minor
3+
---
4+
5+
fix: update package.json exports format for Metro compatibility

lib/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
"types": "dist/index.d.ts",
1515
"main": "dist/index.js",
1616
"exports": {
17-
".": [
18-
{
19-
"imports": "./dist/index.js",
20-
"types": "./dist/index.d.ts"
21-
},
22-
"./dist/index.js"
23-
]
17+
".": {
18+
"react-native": "./src/index.ts",
19+
"types": "./dist/index.d.ts",
20+
"import": "./dist/index.js",
21+
"require": "./dist/index.js",
22+
"default": "./src/index.ts"
23+
}
2424
},
2525
"files": [
2626
"src",

0 commit comments

Comments
 (0)