chore: run npm install in ts_validator in start scripts

This commit is contained in:
Abhishek Kumar 2026-04-21 15:27:16 +05:30
parent 330b81d908
commit 1fa52df2de
2 changed files with 19 additions and 1 deletions

View file

@ -201,6 +201,15 @@ if ! alembic -c "$BASE_DIR/api/alembic.ini" upgrade head; then
fi
log_info "Migrations complete"
TS_VALIDATOR_DIR="$BASE_DIR/api/mcp_server/ts_validator"
if [[ -f "$TS_VALIDATOR_DIR/package.json" ]]; then
log_info "Installing ts_validator npm dependencies"
if ! (cd "$TS_VALIDATOR_DIR" && npm install); then
log_error "npm install for ts_validator failed. Aborting — nothing has been touched."
exit 1
fi
fi
###############################################################################
### PHASE 2: START NEW WORKERS
###############################################################################