From 3ad45ab595bdcbc4ca253010ac3734165ea21f27 Mon Sep 17 00:00:00 2001 From: Manuel <2084639+tennox@users.noreply.github.com> Date: Sat, 11 Nov 2023 01:46:43 +0100 Subject: [PATCH] fix: add types to package.json exports (#2278) Needed for newer typescript with certain moduleResolution settings. Found the explanation & solution here: https://github.com/gxmari007/vite-plugin-eslint/pull/60 & the docs for the option here: https://nodejs.org/api/packages.html#packages_exports (with `types` being defined here: https://nodejs.org/api/packages.html#conditional-exports) Co-authored-by: Manu [tennox] --- packages/client/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/client/package.json b/packages/client/package.json index ae19767247..ed7c5a11e5 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -75,6 +75,7 @@ "main": "./dist/src/lib.cjs", "exports": { ".": { + "types": "./dist/src/lib.d.ts", "browser": "./src/lib.js", "require": "./dist/src/lib.cjs", "node": "./src/lib.js"