From 4fdfb389a655f42c11235968821038e0695679f5 Mon Sep 17 00:00:00 2001 From: Volodymyr Zhdanov Date: Mon, 25 Apr 2022 21:16:01 +0300 Subject: [PATCH 1/2] Fix nodenext module support from TypeScript 4.7 * as per https://github.com/microsoft/TypeScript/issues/48235#issuecomment-1067363731 * follow-up https://github.com/preactjs/preact/pull/3513 --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index a50d467..f3b92d8 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "types": "dist/htm.d.ts", "exports": { ".": { + "types": "./src/index.d.ts", "browser": "./dist/htm.module.js", "umd": "./dist/htm.umd.js", "import": "./dist/htm.mjs", @@ -15,24 +16,28 @@ }, "./": "./", "./preact": { + "types": "./preact/index.d.ts", "browser": "./preact/index.module.js", "umd": "./preact/index.umd.js", "import": "./preact/index.mjs", "require": "./preact/index.js" }, "./preact/standalone": { + "types": "./preact/index.d.ts", "browser": "./preact/standalone.module.js", "umd": "./preact/standalone.umd.js", "import": "./preact/standalone.mjs", "require": "./preact/standalone.js" }, "./react": { + "types": "./react/index.d.ts", "browser": "./react/index.module.js", "umd": "./react/index.umd.js", "import": "./react/index.mjs", "require": "./react/index.js" }, "./mini": { + "types": "./mini/index.d.ts", "browser": "./mini/index.module.js", "umd": "./mini/index.umd.js", "import": "./mini/index.mjs", From 33acbf90d32e143ddbe6aa78ca488d3407513dd7 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 26 Apr 2022 12:13:22 -0400 Subject: [PATCH 2/2] use dist path --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f3b92d8..802902c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "types": "dist/htm.d.ts", "exports": { ".": { - "types": "./src/index.d.ts", + "types": "./dist/htm.d.ts", "browser": "./dist/htm.module.js", "umd": "./dist/htm.umd.js", "import": "./dist/htm.mjs",