db:seed: drop tsx fallback + stderr silencer so errors surface

The '2>/dev/null || tsx' fallback was hiding the real error from the
compiled .cjs (which is what we want to run) and then the fallback
printed 'tsx: not found' — gaslight-grade diagnostics.

Prod image has node + the compiled .cjs, so just run that. If anyone
needs to run the raw .ts in dev, 'npx tsx prisma/seed-dow.ts' still
works ad hoc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
DJP 2026-04-20 22:57:04 -04:00
parent d5467348a7
commit a66411ea53

View file

@ -12,7 +12,7 @@
"db:generate": "prisma generate",
"db:migrate": "prisma migrate dev",
"db:push": "prisma db push",
"db:seed": "node prisma/seed-dow.cjs 2>/dev/null || tsx prisma/seed-dow.ts",
"db:seed": "node prisma/seed-dow.cjs",
"db:seed-legacy": "tsx prisma/seed.ts",
"db:studio": "prisma studio",
"db:seed-tracker": "tsx prisma/seed-tracker-data.ts",