refactor(ui): remove superseded component scaffolds

This commit is contained in:
2026-08-09 13:49:55 +05:30
parent 54a93c1d14
commit ff62918dbb
12 changed files with 675 additions and 765 deletions
+6 -2
View File
@@ -67,12 +67,16 @@ try {
}
const referencePath = join(temporaryRoot, "packages", "ui", "component-reference.json");
const stale = readFileSync(referencePath, "utf8").replace('"count": 108', '"count": 107');
const canonicalCount = JSON.parse(readFileSync(referencePath, "utf8")).count;
const stale = readFileSync(referencePath, "utf8").replace(
`"count": ${canonicalCount}`,
`"count": ${canonicalCount - 1}`,
);
writeFileSync(referencePath, stale);
runGenerator();
const restored = JSON.parse(readFileSync(referencePath, "utf8"));
if (restored.count !== 108) {
if (restored.count !== canonicalCount) {
throw new Error("genuinely stale component reference content was not regenerated");
}