Skip to content

Commit

Permalink
add support for both esm and cjs (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
charkour authored Dec 23, 2023
1 parent 8f14f27 commit 4311700
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@
"license": "MIT",
"author": "Charles Kornoelje",
"type": "module",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"exports": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"package.json"
Expand Down

0 comments on commit 4311700

Please sign in to comment.