build: synchronize safe resize release bundle

Issue: #277
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-08-24 07:13:56 +03:00
parent a5a0f6da2c
commit 03b45f2e37
2 changed files with 6 additions and 2 deletions
File diff suppressed because one or more lines are too long
+4
View File
@@ -102,6 +102,10 @@ git config core.untrackedCache true
- IMPORTANT (audit lesson): the rollup typescript plugin reports a syntax error as a WARNING and still
builds the bundle — a truncated file can "pass". That is why the build starts with `tsc --noEmit`,
which fails on such errors. Always build with `npm run build`, never bare `rollup -c`.
- Before committing a frontend source change, run `npm run bundle:sync`: `npm run build`
writes `dist/houseplan-card.js` only, while the release contract also requires the
committed `custom_components/houseplan/frontend/houseplan-card.js` snapshot to be
byte-identical. The demo copy is refreshed by the same command but remains untracked.
## Maintenance diagnostics