From 9c21b1a513c9e8d5b0c9cbfb5e858ee1600540ad Mon Sep 17 00:00:00 2001 From: Atlantic Platform Group Date: Thu, 28 May 2026 15:21:27 -0400 Subject: [PATCH] fix(setup): force dev dependency install regardless of NODE_ENV npm install skips devDependencies when NODE_ENV=production is set in the shell. This silently breaks the local dev stack because tsx, vite, vitest, prisma, and other dev tools never get installed. The setup script now passes --include=dev so fresh clones work regardless of the user's shell state. --- scripts/setup.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/setup.mjs b/scripts/setup.mjs index 080face..a1c68e6 100755 --- a/scripts/setup.mjs +++ b/scripts/setup.mjs @@ -165,7 +165,9 @@ async function checkGit() { async function installDeps() { info("Installing dependencies (this may take a minute)..."); - await run("npm", ["install"]); + // Force dev dependencies even when NODE_ENV=production is set in the shell. + // Local development requires tsx, vite, vitest, prisma, etc. + await run("npm", ["install", "--include=dev"]); success("Dependencies installed"); }