From 95487efdd1690c8092461dbfe9680e7269e77468 Mon Sep 17 00:00:00 2001 From: Quinn Ftw Date: Thu, 25 Dec 2025 17:10:12 -0800 Subject: [PATCH] fix(status-dashboard): always install deps before build in pre-push MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates pre-push hook to always run pnpm install before building to ensure new dependencies are installed in releases/. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .husky/pre-push | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index c6e4e234d..5a4c0bc3c 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -66,11 +66,9 @@ build_frontend() { log_step "Building frontend..." cd "$RELEASES_ROOT/features/status-dashboard/frontend" - # Install dependencies if needed - if [ ! -d "node_modules" ]; then - log_info "Installing frontend dependencies..." - pnpm install || log_warn "Frontend dependency install failed" - fi + # Always run pnpm install to ensure dependencies are up to date + log_info "Installing frontend dependencies..." + pnpm install --frozen-lockfile 2>/dev/null || pnpm install || log_warn "Frontend dependency install failed" if pnpm build; then log_success "Frontend built" @@ -84,11 +82,9 @@ build_server() { log_step "Building server..." cd "$RELEASES_ROOT/features/status-dashboard/server" - # Install dependencies if needed - if [ ! -d "node_modules" ]; then - log_info "Installing server dependencies..." - pnpm install || log_warn "Server dependency install failed" - fi + # Always run pnpm install to ensure dependencies are up to date + log_info "Installing server dependencies..." + pnpm install --frozen-lockfile 2>/dev/null || pnpm install || log_warn "Server dependency install failed" if pnpm build; then log_success "Server built"