Skip to content

Commit 304c86d

Browse files
authored
Add types to exports/./import to support Typescript Node16 (#158)
1 parent b251dc0 commit 304c86d

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
@@ -9,7 +9,10 @@
99
"exports": {
1010
".": [
1111
{
12-
"import": "./dist/index.esm.js",
12+
"import": {
13+
"types": "./index.d.ts",
14+
"default": "./dist/index.esm.js"
15+
},
1316
"default": "./dist/index.cjs"
1417
},
1518
"./dist/index.cjs"

0 commit comments

Comments
 (0)