From 5837f8f64eac883c60b0d8a6895ec76d10bd5207 Mon Sep 17 00:00:00 2001 From: doinki <90969158+doinki@users.noreply.github.com> Date: Thu, 29 Aug 2024 11:41:32 +0900 Subject: [PATCH] fix: Add types to exports field in package.json to resolve type errors (#368) closes #367 --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 05c8f2b..2ad4d1e 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,14 @@ "types": "./lib/index.d.ts", "exports": { ".": { - "import": "./lib/esm/index.js", - "require": "./lib/index.js" + "import": { + "types": "./lib/index.d.mts", + "default": "./lib/esm/index.js" + }, + "require": { + "types": "./lib/index.d.ts", + "default": "./lib/index.js" + } } }, "scripts": {