diff --git a/scripts/generate-config-doc-baseline.ts b/scripts/generate-config-doc-baseline.ts index 48fcb4c5d6f..5e0ad88fb34 100644 --- a/scripts/generate-config-doc-baseline.ts +++ b/scripts/generate-config-doc-baseline.ts @@ -17,6 +17,19 @@ const result = await writeConfigDocBaselineStatefile({ check: checkOnly, }); +if (!checkOnly && result.changed) { + const { execFileSync } = await import("node:child_process"); + const status = execFileSync( + "git", + ["-C", repoRoot, "status", "--porcelain", "--untracked-files=normal", "--", "docs/.generated"], + { encoding: "utf8" }, + ); + if (status.trim()) { + console.log(`Generated docs drift paths: +${status.trimEnd()}`); + } +} + if (checkOnly) { if (!result.changed) { console.log(