Files
badminton-scoreboard/scripts
JianMiauandClaude Fable 5 13f3bf5198 修正:changelog 產生器保留既有紀錄,避免部署後更新紀錄被清空
根本原因:Docker build 內沒有 .git,generate-changelog 讀不到 git log 時會把 changelog.json 覆蓋成空清單,導致正式站的更新紀錄分頁變成空白。

影響:正式版更新紀錄分頁的資料完整性;package.json 的 npm start 行為與縮排格式。

修法:
- git 取不到資料(或 0 筆)且既有 changelog.json 非空時,直接沿用不覆蓋
- package.json 的 start 改為 npm run dev,縮排統一為 tab

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-13 15:44:42 +08:00
..