From c613725c5c3a68ce557402c288421cd48f529e81 Mon Sep 17 00:00:00 2001 From: Maggi Date: Tue, 5 May 2026 21:25:39 +0200 Subject: [PATCH] fix: run prisma generate before tsc build in Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1 — tsc requires the Prisma-generated types (PrismaClient, GuildConfig) to be present before compilation. Running prisma generate after npm run build caused 5 TypeScript errors due to unresolved types cascading into implicit-any errors in arrow functions. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 77746da..f45bb49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . -RUN npm run build RUN npx prisma generate +RUN npm run build FROM node:20-alpine WORKDIR /app