Skip to content

Commit bd1e838

Browse files
authored
Export type definitions
As seen in kripod#11, the `types` field needs to be exported for modern node resolution methods to work in typescript.
1 parent 30ba448 commit bd1e838

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"author": "Kristóf Poduszló <kripod@protonmail.com>",
1818
"sideEffects": false,
1919
"exports": {
20+
"types": "./index.d.ts",
2021
"default": "./empty.js",
2122
"import": "./empty.js"
2223
},

0 commit comments

Comments
 (0)