chore: dist/ 改为构建产物,从版本库摘除

用户裁定:dist 是产物,不是源码。构建管线与产物拓扑见并发的重构所写的 ADR 0005。

- `git rm -r --cached dist`——只摘索引,**磁盘文件原样保留**。摘除前 dist/ 有 33 个跟踪文件。
- 一并纳入 .gitignore 中已有的 `dist/` 规则(该规则由并发的重构写入),使摘除真正生效;
  否则这些文件会以未跟踪身份继续堆在 git status 里。同时纳入的还有 `node_modules/`
  与 `.scratch/dist-baseline/` 两条同类忽略规则。
- 之前的两次提交(`eb56efb`、`0ca78ed`)按旧约定把 dist/ 收进了版本库,本次把定位纠回来。
  **历史里的 dist blob 不删**:需要旧版产物或那份无损音频时仍可从历史取回。
  源码侧的真相现在是 `src/` + `wallpapers/` + `tools/`。

只做索引层面的摘除,不触碰其它任何改动——同一工作区里还有一个重构在实时写盘。
This commit is contained in:
Shuery committed 2026-09-20 00:17:33 +08:00
1 parent 0ca78ed117
commit b8eee05d78
34 files changed
+8 -194082

No files matched your search

+8
View File
@@ -2,6 +2,13 @@
tools/shots/
tools/.cache/
# 构建产物:dist/ 完全由 pnpm build 生成(releases/ + dist-map.json)。
# 它与源码树必然漂移,且是全量拷贝(约 290 MB),因此不入库。
dist/
# 重构前的基线快照:只作为"重构等价性"的临时判据,验证完即删,不入库。
.scratch/dist-baseline/
# 对拍中间产物:截图、抽取帧、试压的 GIF 都是可重生成的二进制,不入库
.scratch/*.png
.scratch/*.gif
@@ -11,3 +18,4 @@ masters/
# 杂项
*.log
node_modules/