From f8c35c3853ca9c628a2d4dc3f5c6bd40107ea085 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 18 Jul 2024 23:54:21 +0200 Subject: [PATCH] build: fix type exports --- package.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 57cd24c..cc13056 100644 --- a/package.json +++ b/package.json @@ -7,14 +7,19 @@ "type": "module", "exports": { ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.cjs", - "import": "./dist/index.mjs" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } } }, "main": "./dist/index.cjs", "module": "./dist/index.mjs", - "types": "./dist/index.d.ts", + "types": "./dist/index.d.cts", "files": [ "dist" ],