From 6179da5a458ef2c088c73481ce72d2394889c03e Mon Sep 17 00:00:00 2001 From: Aric Camarata Date: Sun, 8 Mar 2026 15:41:52 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20align=20exports=20and=20files=20with=20t?= =?UTF-8?q?sup=20output=20=E2=80=94=20no=20"type":"module"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without "type":"module" in package.json, tsup generates index.d.ts (CJS fallback) and index.d.mts (ESM) rather than index.d.ts + index.d.cts. Removes "type":"module" since .cjs/.mjs extensions make it redundant, updates exports.require.types to index.d.ts, and drops index.d.cts from files. --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 1986a34..355d04b 100644 --- a/package.json +++ b/package.json @@ -4,18 +4,17 @@ "description": "Qibla direction, great-circle path, and haversine distance. Pure math, zero dependencies.", "author": "Aric Camarata", "license": "MIT", - "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "import": { - "types": "./dist/index.d.ts", + "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { - "types": "./dist/index.d.cts", + "types": "./dist/index.d.ts", "default": "./dist/index.cjs" } } @@ -25,7 +24,7 @@ "dist/index.cjs", "dist/index.mjs", "dist/index.d.ts", - "dist/index.d.cts" + "dist/index.d.mts" ], "engines": { "node": ">=20"