Skip to content

Commit 345deb6

Browse files
authored
fix: add types to exports (#110)
Fixes [#208](#208). Typescript 5.0 has a [new moduleResolution](https://dev.to/ayc0/typescript-50-new-mode-bundler-esm-1jic) called `bundler`. This expects the `types` field included in the `exports` field which we did not have.
1 parent 1f08359 commit 345deb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"bindings"
1414
],
1515
"exports": {
16+
"types": "./lib/index.d.ts",
1617
"require": "./lib/cjs/index.js",
1718
"import": "./lib/esm/index.js"
1819
},
1920
"main": "./lib/cjs/index.js",
20-
"types": "lib/index.d.ts",
21+
"types": "./lib/index.d.ts",
2122
"files": [
2223
"lib",
2324
"src",

0 commit comments

Comments
 (0)