These changes make it possible to do regular development on Zod without doing any local builds. All tests run against source files, and inter-package imports just work.
Add @zod/source to point to TypeScript source using tshy's sourceDialects
Use customConditions in tsconfig.json to tell TypeScript to incorporate @zod/source condition into module resolution
Update resolve.conditions in Vitest root config so imports to workspace packages reference source code
These changes make it possible to do regular development on Zod without doing any local builds. All tests run against source files, and inter-package imports just work.
@zod/source
to point to TypeScript source using tshy'ssourceDialects
customConditions
in tsconfig.json to tell TypeScript to incorporate@zod/source
condition into module resolutionresolve.conditions
in Vitest root config so imports to workspace packages reference source code