test(scripts): make UI generator newline check deterministic

This commit is contained in:
2026-08-09 11:24:20 +05:30
parent 535ad5af6d
commit f09341fcfa
+6
View File
@@ -42,6 +42,12 @@ try {
cpSync(join(root, "packages", "ui", name), join(temporaryRoot, "packages", "ui", name));
}
// Bring the isolated copy to the generator's canonical content before
// checking that a line-ending-only difference is preserved. The repository
// artifact can legitimately be stale while this script is proving the
// generator's newline behaviour.
runGenerator();
const jsonFiles = ["component-catalog.json", "component-reference.json"];
const before = new Map();
for (const name of jsonFiles) {