Skip to content

Commit 2b9a0f8

Browse files
authored
chore: add types to exports field to be compatible with nodenext module resolution (socketio#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 6eed888 commit 2b9a0f8

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)