fix(release): stabilize generated UI references

This commit is contained in:
2026-08-01 07:02:22 +05:30
parent d5e834bc78
commit e2f7bea299
9 changed files with 178 additions and 28 deletions
+19
View File
@@ -0,0 +1,19 @@
# WRNexusJS 0.6.0 R13 - UI reference release stability
## Problem
`release:private` regenerated the UI component catalog and reference before publishing. On Windows, the generator always wrote LF output. When the checked-out JSON files used CRLF, Git reported both generated JSON files as modified even though their normalized content was already current.
## Fix
- Added normalized newline comparison to `scripts/generate-ui-component-reference.mjs`.
- Generated files are no longer rewritten when their content differs only by line endings.
- Real generated-content differences are still written and remain visible to the release gate.
- Added `scripts/test-ui-reference-generation.mjs` to execute both the CRLF no-op case and the genuine stale-content repair case.
- Wired the executable regression into `scripts/validate-0.6.mjs`.
## Verified behavior
- Current CRLF catalog/reference files remain byte-for-byte unchanged.
- A stale reference count is regenerated to the correct value.
- Release verification still blocks real generated-content drift.