Skip to content

Commit 944ef38

Browse files
author
Morten Larsen
committed
Fix TypeScript not able to resolve types when set to Node16
1 parent 7662e2b commit 944ef38

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
],
2020
"main": "./lib/index.js",
2121
"module": "./lib/index.js",
22-
"exports": "./lib/index.js",
22+
"exports": {
23+
"default": "./lib/index.js",
24+
"types": "./@type/index.d.ts"
25+
},
2326
"types": "./@type/index.d.ts",
2427
"scripts": {
2528
"eslint": "eslint src/**/*.ts",

0 commit comments

Comments
 (0)