fix(plan): 清理指令改用 Node rmSync;补入 theme 目录 meta
两处修正: 1) 计划的两处 `rm -rf` 与 scripts/README.md:28 的安全规程直接冲突 —— git-bash 的 rm -rf 可能穿透 junction 误删框架真源, 正是本方案要守护的红线。 改用 node rmSync(对 junction 不穿透)。Task 8 已按旧指令执行过一次, 事后核查真源完好(git status 无 D 记录), 属侥幸未出事。 2) Task 7 提交了 theme/ 下四个 .ts 及其 .meta, 但漏了 theme/ 目录自身的 .meta。 目录 meta 同样承载 UUID, 缺失会在跨工程 junction 共享时打断引用。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -223,7 +223,7 @@ node scripts/new-game.mjs gitignore-probe && \
|
||||
test -f games/gitignore-probe/.gitignore && echo "OK: 种子 .gitignore 已随克隆带入" && \
|
||||
cd G:/Works/YouleGamesCocosCreator && \
|
||||
git check-ignore cocoscreator_projects/games/gitignore-probe/library/x && echo "OK: 新工程 library 已忽略" ; \
|
||||
rm -rf cocoscreator_projects/games/gitignore-probe
|
||||
node -e "require('fs').rmSync('cocoscreator_projects/games/gitignore-probe', { recursive: true, force: true })"
|
||||
```
|
||||
|
||||
Expected: 打印 `OK: 种子 .gitignore 已随克隆带入` 与 `OK: 新工程 library 已忽略`;探针工程已删除。
|
||||
@@ -1772,7 +1772,7 @@ Run:
|
||||
|
||||
```bash
|
||||
cd G:/Works/YouleGamesCocosCreator/cocoscreator_projects
|
||||
rm -rf games/skin-e2e build-workspace/skin-e2e
|
||||
node -e "const {rmSync}=require('fs'); rmSync('games/skin-e2e',{recursive:true,force:true}); rmSync('build-workspace/skin-e2e',{recursive:true,force:true})"
|
||||
cd G:/Works/YouleGamesCocosCreator && git status --porcelain cocoscreator_projects/games
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user