From 7eca1c9d6f42929300283f6da209854e8dc43abb Mon Sep 17 00:00:00 2001 From: Charles Samborski Date: Thu, 28 Oct 2021 19:37:24 +0200 Subject: [PATCH] fix: Add `types` field to `package.json` The upcoming TypeScript 4.5.0 version has a new stricter module resolution algorithm that more closely follows Node's resolution: `node12`. It requires packages to explicitly define their exported types, either with a `types` or `export.types` field in `package.json`. This commit fixes the `package.json` so it can be consumed by projects using TypeScript 4.5.0 and the `node12` resolution algorithm. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 97a7e0fe..2bbfd9c6 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "engines": { "node": ">= 0.8" }, + "types": "index.d.ts", "files": [ "HISTORY.md", "LICENSE",