From 2041e53255c1b52cf0d6f9376628b9c714a0dd49 Mon Sep 17 00:00:00 2001 From: Angelo Ashmore Date: Mon, 22 May 2023 13:18:50 -1000 Subject: [PATCH] fix: properly resolve types when using TypeScript's latest module resolution strategy (#62) --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fc33266..2eab503 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,14 @@ "type": "module", "exports": { ".": { - "require": "./dist/index.cjs", - "import": "./dist/index.js" + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.cjs" + }, + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./package.json": "./package.json" },