Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement live types #3656

Merged
merged 5 commits into from
Jul 19, 2024
Merged

Implement live types #3656

merged 5 commits into from
Jul 19, 2024

Conversation

colinhacks
Copy link
Owner

@colinhacks colinhacks commented Jul 19, 2024

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

@colinhacks colinhacks changed the title Implement live types in monorepo with custom condition Implement live types Jul 19, 2024
@colinhacks colinhacks merged commit 8059ce6 into v4 Jul 19, 2024
3 checks passed
@colinhacks colinhacks deleted the v4-live-types branch July 19, 2024 08:21
olehmisar added a commit to olehmisar/zod that referenced this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant