Skip to content

Commit c9a0fa4

Browse files
committed
add react-native export condition
1 parent 46913cb commit c9a0fa4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/core/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
},
3737
"exports": {
3838
".": {
39+
"react-native": {
40+
"types": "./dist/index.d.cts",
41+
"default": "./dist/index.cjs"
42+
},
3943
"require": {
4044
"types": "./dist/index.d.cts",
4145
"default": "./dist/index.cjs"

packages/react/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
},
4343
"exports": {
4444
".": {
45-
"react-native": "./dist.index.cjs",
45+
"react-native": {
46+
"types": "./dist/index.d.cts",
47+
"default": "./dist/index.cjs"
48+
},
4649
"require": {
4750
"types": "./dist/index.d.cts",
4851
"react-server": "./dist/index-rsc.cjs",

0 commit comments

Comments
 (0)