Skip to content

fix(setup): install dev deps regardless of NODE_ENV#60

Merged
atlanticplatformgroup merged 1 commit into
mainfrom
fix/setup-install-dev-deps
May 28, 2026
Merged

fix(setup): install dev deps regardless of NODE_ENV#60
atlanticplatformgroup merged 1 commit into
mainfrom
fix/setup-install-dev-deps

Conversation

@atlanticplatformgroup
Copy link
Copy Markdown
Owner

Problem

When `NODE_ENV=production` is set in the user's shell, `npm install` skips `devDependencies`. In a monorepo workspace this means tsx, vite, vitest, prisma, and other dev tools never get hoisted to `node_modules/.bin/`. The setup script appears to succeed, but `npm run dev` immediately fails with `command not found: tsx` and `command not found: vite`.

Fix

Pass `--include=dev` to `npm install` in the setup script. This forces npm to install dev dependencies regardless of the `NODE_ENV` value.

Verification

  • Fresh clone with `NODE_ENV=production` → setup completes → `npm run dev` starts both API (:3001) and admin (:5173) cleanly.
  • Prisma connects, delivery projection reconciler starts.

Risk

Zero. This only affects the local development setup path. Production installs are not driven by this script.

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.
@atlanticplatformgroup atlanticplatformgroup merged commit 5baebf7 into main May 28, 2026
1 check failed
@atlanticplatformgroup atlanticplatformgroup deleted the fix/setup-install-dev-deps branch May 28, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant