Skip to content

Commit 78acf73

Browse files
committed
Export only z from zod external wrapper
Changed from exporting all of zod to only exporting the z object we actually use. Before: module.exports = require('zod') After: const { z } = require('zod') module.exports = { z } This is more explicit and follows the principle of only exporting what's needed. Status: 5/6 test suites passing (ipc.test.ts still has vitest resolution issue)
1 parent 8f7ff5e commit 78acf73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/external/zod.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
module.exports = require('zod')
1+
const { z } = require('zod')
2+
module.exports = { z }

0 commit comments

Comments
 (0)