fix: honor --dry-run in update and uninstall

This commit is contained in:
Yun Chan 2026-09-14 19:53:20 +09:00
parent 6229538d29
commit 744cb36d74
9 changed files with 113 additions and 23 deletions

View file

@ -83,6 +83,14 @@ jobs:
env DESIGNPACA_STATE_DIR="$state_dir" npx --no-install designpaca --version
env DESIGNPACA_STATE_DIR="$state_dir" npx --no-install designpaca install --target claude-code --scope project --yes
test -f .claude/skills/designpaca/SKILL.md || { echo "설치 후 스킬이 없다" >&2; exit 1; }
# --dry-run 은 어느 명령에서도 쓰지 않아야 한다 (v0.12.0 에서 update 가 무시했다)
cp "$state_dir/manifest.json" "$sandbox/manifest.before.json"
env DESIGNPACA_STATE_DIR="$state_dir" npx --no-install designpaca update --dry-run --force
cmp -s "$state_dir/manifest.json" "$sandbox/manifest.before.json" || { echo "update --dry-run 이 매니페스트를 바꿨다" >&2; exit 1; }
env DESIGNPACA_STATE_DIR="$state_dir" npx --no-install designpaca uninstall --dry-run --yes
test -f .claude/skills/designpaca/SKILL.md || { echo "uninstall --dry-run 이 파일을 지웠다" >&2; exit 1; }
env DESIGNPACA_STATE_DIR="$state_dir" npx --no-install designpaca doctor
env DESIGNPACA_STATE_DIR="$state_dir" npx --no-install designpaca uninstall --yes
test ! -f .claude/skills/designpaca/SKILL.md || { echo "제거 후에도 파일이 남았다" >&2; exit 1; }