From 14488d2e76a520c6fbbef3b8ab40e35dcd378ca5 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Sat, 30 Dec 2023 08:52:12 +0100 Subject: [PATCH] fix: include types in exports map In order to support the `Node16`/`NodeNext` module resolution strategy, types need to be added to the exports map. Docs: https://www.typescriptlang.org/tsconfig#moduleResolution --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index eef2711..54183dc 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,12 @@ }, "exports": { ".": { + "types": "./index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./sync": { + "types": "./sync/index.d.ts", "import": "./sync/index.mjs", "require": "./sync/index.js" }