Skip to content

refactor: generate schema artifacts during workspace setup - #4385

Merged
vincentkoc merged 1 commit into
mainfrom
refactor/stop-tracking-schema-build-output
Nov 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
refactor/stop-tracking-schema-build-output

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Schema edits duplicate canonical TypeScript in 81 tracked JavaScript, declaration, and source-map files.

User Impact

Removes 9,891 net tracked lines. A normal workspace bun install generates the same schema output; Worktrunk, Codex setup, and seed entrypoints rebuild when reusing dependencies. Installs that suppress lifecycle scripts must run bun run --cwd packages/schema build with development dependencies before using the workspace.

Why This Change Was Made

Keep generated artifacts out of Git while preserving compiled package exports and standalone CLI builds. Canonical schema sources, exports, compiler pins, lockfile, and both CLI artifact build helpers are unchanged from base aebfd3336b9796eac6fdcb29bfbcbe968f485755.

Preserves the newer security and package-validation source in #4384 and #4379. Also removes two obsolete VT-era mock expressions left in their combined publish test: an undefined storage context type and ignored arguments to a zero-argument fallback. This fixes the inherited TypeScript errors without changing the mock's behavior.

Evidence

Validated the final frozen tree d45d89bcb03adfd4191adbf0a77ee7786f275951 on the native testbox:

  • Cold workspace install from absent schema output and root/workspace dependencies reproduced all 81 base artifacts byte for byte, with unchanged lockfile. The final test-only cleanup does not change any schema build input.
  • Verified --ignore-scripts plus explicit build, Worktrunk dependency reuse, and both CLI builds starting without schema output.
  • 109 focused setup/schema tests and 419 focused publishing/entrypoint tests passed.
  • Exact Linux CI bunx --no-install tsrs --noEmit passed.
  • bun run ci:static, bun run ci:unit (8,862 passed, 5 skipped), bun run ci:types-build, bun run ci:packages (750 passed, including packed artifacts), and bun run ci:e2e-http (28 passed, 11 skipped) passed.
  • Real isolated anonymous local Convex push and deployment probe passed with crons disabled.
  • Independent P3 reviews completed clean for the schema-setup cleanup and the two-line mock cleanup. Manual rebase review plus exact artifact reproduction confirms the newer canonical source and build boundaries remain intact.

Hosted preview status for head d45d89bcb03adfd4191adbf0a77ee7786f275951: Vercel reports failure. The deployment page/logs were inaccessible, so the cause remains unverified. The native validation above and GitHub types-build, HTTP, and Playwright smoke checks passed. This is not a claim that the preview passed.

No production deployment, production data changes, or release.

AI-assisted; I understand and can maintain this refactor.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Error Error Nov 4, 2026 2:35am UTC

Request Review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review November 4, 2026 02:23
@vincentkoc
vincentkoc requested review from a team and Patrick-Erichsen as code owners November 4, 2026 02:23
@vincentkoc
vincentkoc force-pushed the refactor/stop-tracking-schema-build-output branch from 5080879 to 422a6c3 Compare November 4, 2026 02:26
@vincentkoc
vincentkoc force-pushed the refactor/stop-tracking-schema-build-output branch from 422a6c3 to d45d89b Compare November 4, 2026 02:34
@vincentkoc
vincentkoc merged commit 0928ab6 into main Nov 4, 2026
40 of 41 checks passed
@vincentkoc
vincentkoc deleted the refactor/stop-tracking-schema-build-output branch November 4, 2026 02:37

This branch had an error being deployed

1 failed deployment
Preview – clawhub — d45d89bc Deployed Nov 4, 2026 by vercel[bot]
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