From e8f630f12de4c8674d6ac069920f1c0a6807da2f Mon Sep 17 00:00:00 2001 From: Ajay Ghanwat Date: Mon, 3 Aug 2026 02:32:11 +0530 Subject: [PATCH] fix: format generated docs before release verification --- scripts/release.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/release.ts b/scripts/release.ts index a48d0a15..3bad8a7b 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -351,6 +351,9 @@ function publish(all: PackageInfo[], version: string) { run(npm, ["install", "--package-lock-only", "--ignore-scripts"], docsRoot); run(process.execPath, ["run", "docs:generate"], docsRoot); run(process.execPath, ["run", "docs:generate"], docsRoot); + // Generators also refresh ignored route/type artifacts. Format after + // generation so the subsequent format check validates the final tree. + run(process.execPath, ["run", "format"], docsRoot); run(process.execPath, ["run", "check"], docsRoot); run(process.execPath, ["run", "build"], docsRoot); verifyDocs(all, version);