Skip to content

Commit

Permalink
Add types to exports in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Nov 17, 2022
1 parent eea083b commit f6c2e09
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
}
},
"exports": {
"require": "./index.js",
"import": "./index.mjs"
".": {
"types@<4.8": "./compat.d.ts",
"types": "./index.d.ts",
"require": "./index.js"
}
},
"files": [
"compat.d.ts",
Expand Down

0 comments on commit f6c2e09

Please sign in to comment.