Closed louisscruz closed 11 months ago
CI is running/has finished running commands for commit 142851de07f62f7d48ceb666bb76d38b0135f207. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this branch
Sent with 💌 from NxCloud.
In using
zod-mock
with Yarn PnP in a monorepo, I've found that all return types forgenerateMock
areany
becausezod
itself can't be resolved. The same problem likely exists with other package managers that use module resolution strategies other than node module resolution.This adds
zod
as a peerDependency so types work as expected. I took thezod
version from the top level package.json was used. Perhaps a looser specification would be appropriate.I've confirmed this fixes the problem for Yarn PnP in my monorepo.