1
0
mirror of https://github.com/lancedikson/bowser synced 2026-09-23 04:24:54 +00:00

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.
This commit is contained in:
naorpeled
2026-08-30 00:03:36 +03:00
parent 876f2b81ca
commit fb1771bb0f

View File

@@ -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",