Skip to content

Commit f4da7e9

Browse files
authored
fix: add a correct signatures for the package types exports (#5204)
1 parent 9cf209c commit f4da7e9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,19 @@
2929
"docs/webapi/**"
3030
],
3131
"main": "lib/index.js",
32+
"module": "lib/index.js",
33+
"types": "typings/index.d.ts",
3234
"exports": {
33-
".": "./lib/index.js",
35+
".": {
36+
"import": "./lib/index.js",
37+
"require": "./lib/index.js",
38+
"types": "./typings/index.d.ts"
39+
},
3440
"./lib/*": "./lib/*.js",
3541
"./els": "./lib/els.js",
3642
"./effects": "./lib/effects.js",
3743
"./steps": "./lib/steps.js"
3844
},
39-
"types": "typings/index.d.ts",
4045
"bin": {
4146
"codeceptjs": "./bin/codecept.js"
4247
},

0 commit comments

Comments
 (0)