From a66411ea53b6708d84b3399588d53cf19bc99cd3 Mon Sep 17 00:00:00 2001 From: DJP Date: Mon, 20 Apr 2026 22:57:04 -0400 Subject: [PATCH] db:seed: drop tsx fallback + stderr silencer so errors surface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b3ea50a..f87491b 100644 --- a/package.json +++ b/package.json @@ -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",