Skip to content

Commit 22e9970

Browse files
committed
fix: explicitly declare react-native exports condition
1 parent c9ea2d9 commit 22e9970

5 files changed

Lines changed: 16 additions & 4 deletions

File tree

.changeset/lovely-tigers-wish.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@fluentui-react-native/focus-trap-zone": patch
3+
"@fluentui-react-native/focus-zone": patch
4+
"@fluentui-react-native/experimental-avatar": patch
5+
"@fluentui-react-native/callout": patch
6+
---
7+
8+
Explicitly declare `react-native` exports condition

packages/components/Callout/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
"types": "lib/index.d.ts",
1616
"exports": {
1717
".": {
18+
"react-native": "./src/index.ts",
1819
"types": "./lib/index.d.ts",
1920
"import": "./lib/index.js",
2021
"require": "./lib-commonjs/index.js",
21-
"default": "./src/index.ts"
22+
"default": "./lib-commonjs/index.js"
2223
}
2324
},
2425
"scripts": {

packages/components/FocusTrapZone/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
"types": "lib/index.d.ts",
1515
"exports": {
1616
".": {
17+
"react-native": "./src/index.ts",
1718
"types": "./lib/index.d.ts",
1819
"import": "./lib/index.js",
1920
"require": "./lib-commonjs/index.js",
20-
"default": "./src/index.ts"
21+
"default": "./lib-commonjs/index.js"
2122
}
2223
},
2324
"scripts": {

packages/components/FocusZone/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
"types": "lib/index.d.ts",
1515
"exports": {
1616
".": {
17+
"react-native": "./src/index.ts",
1718
"types": "./lib/index.d.ts",
1819
"import": "./lib/index.js",
1920
"require": "./lib-commonjs/index.js",
20-
"default": "./src/index.ts"
21+
"default": "./lib-commonjs/index.js"
2122
}
2223
},
2324
"scripts": {

packages/experimental/Avatar/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
"types": "lib/index.d.ts",
1616
"exports": {
1717
".": {
18+
"react-native": "./src/index.ts",
1819
"types": "./lib/index.d.ts",
1920
"import": "./lib/index.js",
2021
"require": "./lib-commonjs/index.js",
21-
"default": "./src/index.ts"
22+
"default": "./lib-commonjs/index.js"
2223
}
2324
},
2425
"scripts": {

0 commit comments

Comments
 (0)