Skip to content

Commit

Permalink
fix: types for TypeScript moduleResolution (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed authored and psibean committed Sep 15, 2023
1 parent 35ed475 commit 6a5cd2c
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 @@ -6,8 +6,14 @@
"main": "./lib/cjs/index.cjs",
"exports": {
".": {
"require": "./lib/cjs/index.cjs",
"import": "./lib/esm/index.js"
"require": {
"types": "./lib/index.d.ts",
"default": "./lib/cjs/index.cjs"
},
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/esm/index.js"
}
}
},
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit 6a5cd2c

Please sign in to comment.