Skip to content

Commit

Permalink
build: update exports field for type support
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 5, 2023
1 parent d3f3bae commit f43772b
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 @@ -5,8 +5,14 @@
"license": "MIT",
"exports": {
".": {
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"main": "./dist/index.cjs",
Expand Down

0 comments on commit f43772b

Please sign in to comment.