From 9fc32bf9cdec5e31d57fe7f1cb25f01546d34836 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Thu, 27 Mar 2025 20:56:09 -0400 Subject: [PATCH] fix(pkg): move `types` above `default` - otherwise it isn't detected and types only happen to work [due to a TS bug](https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/6ab2f0a7bf5ab4a64f57fe71df7f58506f227362/docs/problems/FallbackCondition.md) --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8b4902c..f6a0814 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,9 @@ "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { + "types": "./dist/index.d.ts", "require": "./dist/index.umd.min.js", - "default": "./dist/index.mjs", - "types": "./dist/index.d.ts" + "default": "./dist/index.mjs" }, "files": [ "./src/",