Skip to content

Commit

Permalink
feat: supporting esm import
Browse files Browse the repository at this point in the history
add the exports in package.json to support esm import for js and ts
  • Loading branch information
anuragmerndev committed May 12, 2024
1 parent aa70cdc commit 07fce0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
"type": "git",
"url": "git+https://github.com/supertokens/supertokens-node.git"
},
"exports": {
"./recipe/*": {
"types": "./recipe/*/index.d.ts",
"default": "./recipe/*/index.js"
}
},
"author": "rishabhpoddar",
"license": "Apache-2.0",
"bugs": {
Expand Down

0 comments on commit 07fce0f

Please sign in to comment.