From 6c730c8ceef8b1a0e4ece119c788d2c9e09aaf36 Mon Sep 17 00:00:00 2001 From: Amju <86785660+amjed-ali-k@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:13:46 +0530 Subject: [PATCH] fix(frontend-sdk): fix export types --- frontend/frontend-sdk/package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/frontend-sdk/package.json b/frontend/frontend-sdk/package.json index 4a58b3946..b69c6d892 100644 --- a/frontend/frontend-sdk/package.json +++ b/frontend/frontend-sdk/package.json @@ -8,12 +8,15 @@ "files": [ "dist" ], - "types": "dist/index.d.ts", "type": "module", "source": "src/index.ts", + "types": "dist/index.d.ts", "exports": { - "require": "./dist/sdk.cjs", - "default": "./dist/sdk.modern.js" + ".": { + "require": "./dist/sdk.cjs", + "types": "./dist/index.d.ts", + "default": "./dist/sdk.modern.js" + } }, "main": "./dist/sdk.cjs", "module": "./dist/sdk.module.js",