Skip to content

Commit

Permalink
build: add types export conditions (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Dec 15, 2023
1 parent 02609e8 commit 9655e95
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 @@ -7,8 +7,14 @@
"main": "./dist/index.cjs",
"type": "module",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"types": "./dist/index.d.ts",
"files": [
Expand Down

0 comments on commit 9655e95

Please sign in to comment.