From ff8ded8a2c9c37089258591308d707d7a0f2f373 Mon Sep 17 00:00:00 2001 From: DD Date: Wed, 6 Sep 2023 21:01:40 +0300 Subject: [PATCH] feat: add "types" exports for "node16" tsc resolution (#192) * feat: typescript node16 resolution support * chore: do it for all packages * fix "types" order * fix "types" order * fix "types" order * fix "types" order * fix "types" order * fix "types" order --------- Co-authored-by: Luke Edwards --- packages/cluster/package.json | 1 + packages/parse/package.json | 1 + packages/polka/package.json | 1 + packages/redirect/package.json | 1 + packages/send/package.json | 1 + packages/url/package.json | 1 + 6 files changed, 6 insertions(+) diff --git a/packages/cluster/package.json b/packages/cluster/package.json index 685679a..1cd218c 100644 --- a/packages/cluster/package.json +++ b/packages/cluster/package.json @@ -9,6 +9,7 @@ "license": "MIT", "exports": { ".": { + "types": "./index.d.ts", "import": "./build.mjs", "require": "./build.js" }, diff --git a/packages/parse/package.json b/packages/parse/package.json index 125126f..ab56f1b 100644 --- a/packages/parse/package.json +++ b/packages/parse/package.json @@ -9,6 +9,7 @@ "license": "MIT", "exports": { ".": { + "types": "./index.d.ts", "import": "./build.mjs", "require": "./build.js" }, diff --git a/packages/polka/package.json b/packages/polka/package.json index 1f76f41..d5214e5 100644 --- a/packages/polka/package.json +++ b/packages/polka/package.json @@ -9,6 +9,7 @@ "license": "MIT", "exports": { ".": { + "types": "./index.d.ts", "import": "./build.mjs", "require": "./build.js" }, diff --git a/packages/redirect/package.json b/packages/redirect/package.json index 52e3025..8302c25 100644 --- a/packages/redirect/package.json +++ b/packages/redirect/package.json @@ -9,6 +9,7 @@ "license": "MIT", "exports": { ".": { + "types": "./index.d.ts", "import": "./build.mjs", "require": "./build.js" }, diff --git a/packages/send/package.json b/packages/send/package.json index 4101a59..e9c9826 100644 --- a/packages/send/package.json +++ b/packages/send/package.json @@ -9,6 +9,7 @@ "license": "MIT", "exports": { ".": { + "types": "./index.d.ts", "import": "./build.mjs", "require": "./build.js" }, diff --git a/packages/url/package.json b/packages/url/package.json index 5a2eeff..b86db68 100644 --- a/packages/url/package.json +++ b/packages/url/package.json @@ -9,6 +9,7 @@ "license": "MIT", "exports": { ".": { + "types": "./index.d.ts", "import": "./build.mjs", "require": "./build.js" },