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 Apr 29, 2024
1 parent 5c644a7 commit fd78c6d
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 fd78c6d

Please sign in to comment.