From fb1771bb0f38e6a1ca47ac2285bb4a8e7ded28c7 Mon Sep 17 00:00:00 2001 From: naorpeled Date: Sun, 30 Aug 2026 00:03:36 +0300 Subject: [PATCH] fix(types): give the bowser.mjs subpath export a types condition A plain string export leaves 'bowser/bowser.mjs' untyped under node16/nodenext/bundler resolution; index.d.mts already describes exactly this module. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 662d1cb..f4016a1 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,10 @@ "./es5": "./es5.js", "./bundled.js": "./bundled.js", "./bundled": "./bundled.js", - "./bowser.mjs": "./bowser.mjs", + "./bowser.mjs": { + "types": "./index.d.mts", + "default": "./bowser.mjs" + }, "./src/bowser.js": "./src/bowser.js", "./src/bowser": "./src/bowser.js", "./src/constants.js": "./src/constants.js",