File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 22
22
"./dist/socket.io.js" : " ./dist/socket.io.js" ,
23
23
"./dist/socket.io.js.map" : " ./dist/socket.io.js.map" ,
24
24
"." : {
25
- "types" : " ./build/esm/index.d.ts" ,
26
25
"import" : {
26
+ "types" : " ./build/esm/index.d.ts" ,
27
27
"node" : " ./build/esm-debug/index.js" ,
28
28
"default" : " ./build/esm/index.js"
29
29
},
30
- "require" : " ./build/cjs/index.js"
30
+ "require" : {
31
+ "types" : " ./build/cjs/index.d.ts" ,
32
+ "default" : " ./build/cjs/index.js"
33
+ }
31
34
},
32
35
"./debug" : {
33
- "import" : " ./build/esm-debug/index.js" ,
34
- "require" : " ./build/cjs/index.js"
36
+ "import" : {
37
+ "types" : " ./build/esm/index.d.ts" ,
38
+ "default" : " ./build/esm-debug/index.js"
39
+ },
40
+ "require" : {
41
+ "types" : " ./build/cjs/index.d.ts" ,
42
+ "default" : " ./build/cjs/index.js"
43
+ }
35
44
}
36
45
},
37
46
"types" : " ./build/esm/index.d.ts" ,
Original file line number Diff line number Diff line change 3
3
"outDir" : " build/cjs/" ,
4
4
"target" : " es2018" , // Node.js 10 (https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping)
5
5
"module" : " commonjs" ,
6
- "declaration" : false ,
6
+ "declaration" : true ,
7
7
"esModuleInterop" : true
8
8
},
9
9
"include" : [
You can’t perform that action at this time.
0 commit comments