Skip to content

Commit 03e7d58

Browse files
committed
fix(desktop): the packaged server finds zod for @cursor/sdk 1.0.38
@cursor/sdk 1.0.38 moved zod to a peer dependency. zod is a runtime external of the server bundle (scripts/lib/cli-external-packages.ts), but the desktop stage only installs externals the server lists itself, so electron-builder copied @cursor/sdk without zod and the packaged backend exited at startup with Cannot find module 'zod/v4'. The server now depends on zod directly.
1 parent 1173975 commit 03e7d58

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/server/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
"stream-json": "3.6.0",
7070
"undici": "catalog:",
7171
"yaml": "catalog:",
72-
"yauzl": "^3.4.0"
72+
"yauzl": "^3.4.0",
73+
"zod": "^4.6.5"
7374
},
7475
"devDependencies": {
7576
"@effect/graphql-generator": "catalog:",

‎pnpm-lock.yaml‎

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)