Skip to content

Commit aa58ffa

Browse files
authored
(chore) export types in package.json (#3736)
1 parent 909ba4e commit aa58ffa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/build_node.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ function dual(file) {
102102
}
103103

104104
const generatePackageExports = () => ({
105-
".": dual("./lib/index.js"),
105+
".": {
106+
...dual("./lib/index.js"),
107+
"types": "./types/index.d.ts",
108+
},
106109
"./package.json": "./package.json",
107110
"./lib/common": dual("./lib/common.js"),
108111
"./lib/core": dual("./lib/core.js"),

0 commit comments

Comments
 (0)