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",