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);