Skip to content

fix(typegen): preserve fmodata customizations with clearOldFiles#122

Merged
eluce2 merged 1 commit intomainfrom
fix/fmodata-clearoldfiles-preserve-customizations
Feb 27, 2026
Merged

fix(typegen): preserve fmodata customizations with clearOldFiles#122
eluce2 merged 1 commit intomainfrom
fix/fmodata-clearoldfiles-preserve-customizations

Conversation

@eluce2
Copy link
Collaborator

@eluce2 eluce2 commented Feb 27, 2026

Note

Medium Risk
Changes the clearOldFiles behavior to delete files after regeneration via a recursive cleanup, which could remove unexpected entries if the output path is misconfigured, but is otherwise localized to type generation output.

Overview
Fixes fmodata type generation so clearOldFiles no longer nukes the output directory before merging with existing files; existing schemas are now always parsed so field-level customizations (e.g. validators) are preserved.

When clearOldFiles is enabled, stale files/directories are now removed after generation by tracking regenerated files (including index.ts) and deleting any other entries in the output tree. Adds an e2e test covering customization preservation plus stale file cleanup, and includes a patch changeset.

Written by Cursor Bugbot for commit ea7f4c2. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 27, 2026

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

Project Deployment Actions Updated (UTC)
proofkit-docs Ready Ready Preview Feb 27, 2026 0:25am

Request Review

Copy link
Collaborator Author

eluce2 commented Feb 27, 2026

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 27, 2026

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/better-auth@122

@proofkit/cli

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/cli@122

create-proofkit

pnpm add https://pkg.pr.new/proofgeist/proofkit/create-proofkit@122

@proofkit/fmdapi

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmdapi@122

@proofkit/fmodata

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/fmodata@122

@proofkit/typegen

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/typegen@122

@proofkit/webviewer

pnpm add https://pkg.pr.new/proofgeist/proofkit/@proofkit/webviewer@122

commit: 7372760

Copy link
Collaborator Author

eluce2 commented Feb 27, 2026

Merge activity

  • Feb 27, 2:19 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Feb 27, 2:20 PM UTC: @eluce2 merged this pull request with Graphite.

@eluce2 eluce2 merged commit 4e048d1 into main Feb 27, 2026
16 checks passed
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