Skip to content

Commit e167f11

Browse files
committed
chore: add exports field in package.json for module resolution
1 parent 9cb3905 commit e167f11

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

packages/uikit-chat-hooks/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@
1616
"types": "lib/typescript/src/index.d.ts",
1717
"react-native": "src/index",
1818
"source": "src/index",
19+
"exports": {
20+
"./package.json": "./package.json",
21+
".": {
22+
"types": "./lib/typescript/src/index.d.ts",
23+
"react-native": "./src/index.ts",
24+
"require": "./lib/commonjs/index.js",
25+
"import": "./lib/module/index.js"
26+
}
27+
},
1928
"files": [
2029
"src",
2130
"lib",

packages/uikit-react-native-foundation/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
"types": "lib/typescript/src/index.d.ts",
1919
"react-native": "src/index",
2020
"source": "src/index",
21+
"exports": {
22+
"./package.json": "./package.json",
23+
".": {
24+
"types": "./lib/typescript/src/index.d.ts",
25+
"react-native": "./src/index.ts",
26+
"require": "./lib/commonjs/index.js",
27+
"import": "./lib/module/index.js"
28+
}
29+
},
2130
"files": [
2231
"src",
2332
"lib",

packages/uikit-react-native/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@
2525
"types": "lib/typescript/src/index.d.ts",
2626
"react-native": "src/index",
2727
"source": "src/index",
28+
"exports": {
29+
"./package.json": "./package.json",
30+
".": {
31+
"types": "./lib/typescript/src/index.d.ts",
32+
"react-native": "./src/index.ts",
33+
"require": "./lib/commonjs/index.js",
34+
"import": "./lib/module/index.js"
35+
}
36+
},
2837
"files": [
2938
"src",
3039
"lib",

packages/uikit-testing-tools/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
"types": "lib/typescript/src/index.d.ts",
1313
"react-native": "src/index",
1414
"source": "src/index",
15+
"exports": {
16+
"./package.json": "./package.json",
17+
".": {
18+
"types": "./lib/typescript/src/index.d.ts",
19+
"react-native": "./src/index.ts",
20+
"require": "./lib/commonjs/index.js",
21+
"import": "./lib/module/index.js"
22+
}
23+
},
1524
"files": [
1625
"src",
1726
"lib",

packages/uikit-utils/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
"types": "lib/typescript/src/index.d.ts",
1616
"react-native": "src/index",
1717
"source": "src/index",
18+
"exports": {
19+
"./package.json": "./package.json",
20+
".": {
21+
"types": "./lib/typescript/src/index.d.ts",
22+
"react-native": "./src/index.ts",
23+
"require": "./lib/commonjs/index.js",
24+
"import": "./lib/module/index.js"
25+
}
26+
},
1827
"files": [
1928
"src",
2029
"lib",

0 commit comments

Comments
 (0)