fix(profile): declare a setup command so the build gate installs deps first

QA runs clear frontend/ before each run, taking node_modules with it. With
#263 making the terminal build gate actually fire, the gate would fail on
absent dependencies instead of on the code it exists to verify.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 21:36:40 +04:00
parent a7f5b9902f
commit 7cfb4e92d1
2 changed files with 12 additions and 6 deletions
+4
View File
@@ -18,6 +18,10 @@ epic-status = "bash scripts/epic-status.sh"
# The gate runner is whitespace-split / no-shell and runs at workspace_root (the repo), so `--prefix
# frontend` targets the Node subproject without a `cd`. `npm run build` = `tsc && vite build` (npm's
# own shell handles the &&), which fails on a dangling asset import — exactly the COMPLETED-lie hole.
# QA runs clear frontend/ before each run, so node_modules is absent when the terminal build gate
# fires. Without this the gate fails on missing deps instead of on the code it exists to verify.
# `install`, not `ci`: a fresh scaffold has no package-lock.json yet.
setup = "npm --prefix frontend install"
typecheck = "npm --prefix frontend run build"
build = "npm --prefix frontend run build"
test = "npm --prefix frontend test"