From 39304acf3e9aff790f4d2ef8d40a99889a575a89 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Tue, 22 Oct 2024 09:55:43 -0400 Subject: [PATCH] fix: esm types --- package.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/package.json b/package.json index 6865e56..0399c6d 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,23 @@ "module": "./lib/esm.mjs", "browser": "./lib/web.js", "types": "./lib/types.d.ts", + "exports": { + "./package.json": "./package.json", + ".": { + "import": { + "types": "./lib/esm.d.ts", + "default": "./lib/esm.mjs" + }, + "require": { + "types": "./lib/commonjs.d.ts", + "default": "./lib/commonjs.cjs" + }, + "browser": { + "types": "./lib/web.d.ts", + "default": "./lib/web.js" + } + } + }, "publishConfig": { "provenance": true },