From 83a3ee5b520599f3e9bcba7a94d1b05576063ddd Mon Sep 17 00:00:00 2001 From: David Mihalcik Date: Thu, 12 Jan 2023 09:41:55 -0500 Subject: [PATCH] Adds exported types to moduleResolution:node16 This will let users get type information when compiling ESM projects with node module settings in later versions of tsc and node 18+ --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ec7010d..4d1fb54 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ ".": { "module": "./dist/index.modern.js", "import": "./dist/index.modern.js", - "require": "./dist/index.cjs" + "require": "./dist/index.cjs", + "types": "./index.d.ts" }, "./package.json": "./package.json" },