Skip to content

Commit 536fa74

Browse files
🐛 Fix bug of zod validator not exported
1 parent 8076279 commit 536fa74

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
"types": "./dist/index.d.ts",
3131
"require": "./dist/index.cjs",
3232
"import": "./dist/index.js"
33+
},
34+
"./validators/zod": {
35+
"types": "./dist/validators/zod.d.ts",
36+
"require": "./dist/validators/zod.cjs",
37+
"import": "./dist/validators/zod.js"
3338
}
3439
},
3540
"type": "module",

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig } from "tsup";
22

33
export default defineConfig({
4-
entry: ["src/index.ts"],
4+
entry: ["src/index.ts", "src/validators/zod.ts"],
55
format: ["esm", "cjs"],
66
dts: true,
77
clean: true,

0 commit comments

Comments
 (0)