Skip to content

Commit

Permalink
fix: Add types to exports field in package.json to resolve type errors (
Browse files Browse the repository at this point in the history
#368)

closes #367
  • Loading branch information
doinki authored Aug 29, 2024
1 parent fe9b709 commit 5837f8f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@
"types": "./lib/index.d.ts",
"exports": {
".": {
"import": "./lib/esm/index.js",
"require": "./lib/index.js"
"import": {
"types": "./lib/index.d.mts",
"default": "./lib/esm/index.js"
},
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
}
}
},
"scripts": {
Expand Down

0 comments on commit 5837f8f

Please sign in to comment.