Skip to content

Commit 51784d0

Browse files
authoredDec 28, 2021
chore: add types to exports field to be compatible with nodenext module resolution (#4228)
See [1] for detail, in `nodenext` module resolution it requires a `types` field in `exports` with full filename including extension. [1]: microsoft/TypeScript#46770 (comment)
1 parent c196689 commit 51784d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"main": "./dist/index.js",
2828
"exports": {
2929
"import": "./wrapper.mjs",
30-
"require": "./dist/index.js"
30+
"require": "./dist/index.js",
31+
"types": "./dist/index.d.ts"
3132
},
3233
"types": "./dist/index.d.ts",
3334
"license": "MIT",

0 commit comments

Comments
 (0)
Please sign in to comment.