mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-10 07:28:06 -05:00
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]: https://github.com/microsoft/TypeScript/issues/46770#issuecomment-966612103
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
"main": "./dist/index.js",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./dist/index.js"
|
||||
"require": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"license": "MIT",
|
||||
|
||||
Reference in New Issue
Block a user