Skip to content

Commit

Permalink
Add types to exports in package.json
Browse files Browse the repository at this point in the history
This is required for moduleResolution nodenext or bundler.

Fixes #293
  • Loading branch information
cristatus authored and akheron committed Jul 9, 2023
1 parent 2a18ef1 commit b073df3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@
"main": "./dist/cjs/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
},
"./standalone": {
"types": "./standalone/index.d.ts",
"import": "./dist/mjs/standalone/index.js",
"require": "./dist/cjs/standalone/index.js"
},
"./interop": {
"types": "./interop.d.ts",
"import": "./dist/mjs/interop.js",
"require": "./dist/cjs/interop.js"
}
Expand Down

0 comments on commit b073df3

Please sign in to comment.