From 6bbb46e3b97be3c378b171e85563287793e0eda4 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 16 Dec 2023 17:26:37 -0800 Subject: [PATCH] fix(package): include types in exports map --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a94e009..99cb01b 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,13 @@ "types": "./lib/index.d.ts", "exports": { ".": { + "types": "./lib/index.d.ts", "svelte": "./lib/index.js" }, - "./lib/*": "./lib/*" + "./lib/*.svelte": { + "types": "./lib/*.svelte.d.ts", + "import": "./lib/*.svelte" + } }, "scripts": { "prepack": "bun test"