Skip to content

Commit

Permalink
fix: typescript module resolution exports
Browse files Browse the repository at this point in the history
  • Loading branch information
br1anchen committed Sep 19, 2023
1 parent 681e838 commit b4bc034
Show file tree
Hide file tree
Showing 2 changed files with 1,269 additions and 1,246 deletions.
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@
"main": "./dist/index.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": "./dist/index.js",
"./components": "./src/components/index.ts"
".": {
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/index.js"
}
},
"./components": {
"import": {
"types": "./src/components/index.d.ts",
"default": "./src/components/index.ts"
}
}
},
"typesVersions": {
"*": {
Expand Down

0 comments on commit b4bc034

Please sign in to comment.