From 8c099f0b5ffa1b62a109a9a9016475d98828e29b Mon Sep 17 00:00:00 2001 From: Abhishek Dhiman Date: Mon, 20 Apr 2026 15:05:38 +0530 Subject: [PATCH] fix: add subpath export for v1 to support ESM imports Signed-off-by: Abhishek Dhiman --- sdks/typescript/package.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sdks/typescript/package.json b/sdks/typescript/package.json index c7a136065b..6fd65ff42d 100644 --- a/sdks/typescript/package.json +++ b/sdks/typescript/package.json @@ -3,6 +3,20 @@ "version": "1.21.0", "description": "Background task orchestration & visibility for developers", "types": "dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.js", + "default": "./dist/index.js" + }, + "./v1": { + "types": "./dist/v1/index.d.ts", + "import": "./dist/v1/index.js", + "require": "./dist/v1/index.js", + "default": "./dist/v1/index.js" + } + }, "files": [ "*", "!**/*.test.js",