Skip to content

Commit c50ae46

Browse files
committed
Update exports
1 parent 4862d41 commit c50ae46

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@
1515
"files": [
1616
"dist/**"
1717
],
18+
"exports": {
19+
".": {
20+
"require": "./dist/index.js",
21+
"import": "./dist/index.mjs",
22+
"types": "./dist/index.d.ts"
23+
},
24+
"./react": {
25+
"require": "./dist/react/index.js",
26+
"import": "./dist/react/index.mjs",
27+
"types": "./dist/react/index.d.ts"
28+
},
29+
"./dist/react": {
30+
"require": "./dist/react/index.js",
31+
"import": "./dist/react/index.mjs",
32+
"types": "./dist/react/index.d.ts"
33+
}
34+
},
1835
"scripts": {
1936
"build": "tsup && tsc -p tsconfig-build.json",
2037
"clean": "rm -rf dist",

0 commit comments

Comments
 (0)