From 34354a6fcdd0aec68ba95ef126ecaca0c210cfd7 Mon Sep 17 00:00:00 2001 From: Neil Campbell Date: Thu, 23 Nov 2023 10:44:46 +0800 Subject: [PATCH] fix: add support for TS < 4.7 and projects with non nodenext/node16 module resolution settings --- package.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index edf4be6..bfe65e5 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,21 @@ "bugs": { "url": "https://github.com/algorand/avm-debugger/issues" }, + "main": "out/src/common/index.js", + "types": "out/src/common/index.d.ts", + "typesVersions": { + "*": { + ".": [ + "out/src/common/index.d.ts" + ], + "*": [ + "out/src/common/index.d.ts" + ], + "node": [ + "out/src/node/index.d.ts" + ] + } + }, "exports": { ".": { "types": "./out/src/common/index.d.ts", @@ -87,4 +102,4 @@ "typescript": "^4.6.3", "url": "^0.11.3" } -} +} \ No newline at end of file