From fce44f3e486033adc836251ae59fe52fa339806d Mon Sep 17 00:00:00 2001 From: TheFlow Date: Sun, 26 Oct 2025 23:22:40 +1300 Subject: [PATCH] fix(deployment): frontend-only mode now only checks public/ for uncommitted changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Frontend-only deployments no longer blocked by .claude/ session files - Full deployments still check all files for uncommitted changes - Allows deploying public/ changes without committing backend session state 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/deploy.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 920200a2..46ef3ebb 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -157,7 +157,14 @@ else fi # Check for uncommitted changes (excluding cache version files) -UNCOMMITTED=$(git status --porcelain | grep -v "public/.*\.html" | grep -v "public/service-worker.js" | grep -v "public/version.json" || true) +if [ "$FRONTEND_ONLY" = true ]; then + # Frontend-only: only check public/ directory for uncommitted changes + UNCOMMITTED=$(git status --porcelain public/ | grep -v "public/.*\.html" | grep -v "public/service-worker.js" | grep -v "public/version.json" || true) +else + # Full deployment: check all files + UNCOMMITTED=$(git status --porcelain | grep -v "public/.*\.html" | grep -v "public/service-worker.js" | grep -v "public/version.json" || true) +fi + if [ ! -z "$UNCOMMITTED" ]; then echo -e "${YELLOW} ⚠ WARNING: Uncommitted changes detected:${NC}" echo "$UNCOMMITTED" | sed 's/^/ /'