mirror of
https://github.com/lancedikson/bowser
synced 2026-10-02 16:54:24 +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:
@@ -51,7 +51,10 @@
|
|||||||
"./es5": "./es5.js",
|
"./es5": "./es5.js",
|
||||||
"./bundled.js": "./bundled.js",
|
"./bundled.js": "./bundled.js",
|
||||||
"./bundled": "./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.js": "./src/bowser.js",
|
||||||
"./src/bowser": "./src/bowser.js",
|
"./src/bowser": "./src/bowser.js",
|
||||||
"./src/constants.js": "./src/constants.js",
|
"./src/constants.js": "./src/constants.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user