`Fail if components-metadata.json is out of date` has been red on every push
for days. The diff it printed was one line — the last one:
-}
+}
\ No newline at end of file
The committed JSON ends with a newline; the generator wrote
JSON.stringify(...) with none, so `git diff` was never empty and no content
change could ever clear it. The generator now writes the trailing newline,
which makes a fresh run byte-identical to what is committed.
Verified by running the real generator (needs the wokwi-elements clone, and
NODE_PATH pointing at frontend/node_modules): 156 components, `git diff`
empty.
|
||
|---|---|---|
| .. | ||
| asm8080.py | ||
| component-overrides.json | ||
| counter-rom.s | ||
| counter-rom.txt | ||
| generate-component-metadata.ts | ||
| generate-component-svgs.cjs | ||
| generate-example-screenshots.md | ||
| generate-favicons.mjs | ||
| generate-og-image.mjs | ||
| generate-sitemap.ts | ||
| killbits-rom.s | ||
| larson-z80.s | ||
| make-z80-cpu.py | ||
| repl-rom.s | ||
| repl-rom.txt | ||
| test-z80.s | ||
| visual-led-test.mjs | ||