fix(status-dashboard): always install deps before build in pre-push
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 <noreply@anthropic.com>
This commit is contained in:
parent
ef6273542a
commit
95487efdd1
1 changed files with 6 additions and 10 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue