Skip to content

Commit 3596068

Browse files
authored
fix: TypeScript exports in package.json (#461)
1 parent 759aac1 commit 3596068

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99
"main": "build/src/index.js",
1010
"types": "build/src/index.d.ts",
1111
"exports": {
12-
".": "./build/src/index.js",
13-
"./testing": "./build/src/testing.js"
12+
".": {
13+
"types": "./build/src/index.d.ts",
14+
"default": "./build/src/index.js"
15+
},
16+
"./testing": {
17+
"types": "./build/src/testing.d.ts",
18+
"default": "./build/src/testing.js"
19+
}
1420
},
1521
"dependencies": {
1622
"@types/express": "4.17.13",

0 commit comments

Comments
 (0)