feat: support literal & lazy - #9
Open
rycont wants to merge 8 commits into
Open
Conversation
rycont
commented
Jan 30, 2026
- Support z.literal field by adding LiteralTemplate component
- Support z.lazy field by adding processor for lazy evaluation
|
@rycont is attempting to deploy a commit to the m6io Team on Vercel. A member of the Team first needs to authorize it. |
When generating declaration files, TypeScript needs to reference React types. Without @types/react in peerDependencies, the inferred types of exports like CoreFormProvider, useTemplates, useRenderTemplate, and CoreForm cannot be named portably, causing TS2742 errors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
peerDependencies alone don't resolve during pnpm prepare in CI — the types resolve through core's pnpm store path, causing TS2742. Moving to dependencies ensures @types/react is always available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pnpm resolves @types/react through core's store path during prepare, making inferred types non-portable. Explicit annotations on the four problematic re-exports (CoreFormProvider, useTemplates, useRenderTemplate, CoreForm) eliminate the need for type inference across package boundaries. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This repo is consumed as a git dependency, so installing it runs `prepare`, which runs a workspace install here. pnpm >=10 blocks dependency build scripts by default and that nested install cannot be approved interactively, so it fails with ERR_PNPM_IGNORED_BUILDS. Any consumer with a cold pnpm store could not install; it only appeared to work because existing stores already had this package prepared. Also pin packageManager. The nested install previously ran on whatever corepack resolved (pnpm 11.x) while consumers were on pnpm 10.9. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The pin lives in a consumer repo, so the traps are invisible from here: a codeload tarball URL silently installs the repository root instead of packages/zod, and pnpm keys its store by tarball integrity, so one commit cannot be stored both as the root and as a subdirectory. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.