From 07fce0f945cad3f687b5b7b3fa367427baf25699 Mon Sep 17 00:00:00 2001 From: anuragmerndev Date: Tue, 30 Apr 2024 01:59:40 +0530 Subject: [PATCH] feat: supporting esm import add the exports in package.json to support esm import for js and ts --- package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.json b/package.json index d4e3a4df19..aa197ea546 100644 --- a/package.json +++ b/package.json @@ -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": {