From 017833cd998b5c47c21d128306c03ceed024e71a Mon Sep 17 00:00:00 2001 From: dmitriylaukhin Date: Tue, 7 Apr 2026 10:45:56 +0500 Subject: [PATCH] Fix seed.ts import and exclude prisma dir from Next.js tsc - seed.ts: use ../src/generated/prisma/client (Prisma 7 entry point) - tsconfig.json: exclude prisma/ so seed.ts is not type-checked by Next.js build Co-Authored-By: Claude Sonnet 4.6 --- prisma/seed.ts | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 6d45a2f..f93838d 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -1,5 +1,5 @@ import "dotenv/config"; -import { PrismaClient } from "../src/generated/prisma"; +import { PrismaClient } from "../src/generated/prisma/client"; import bcrypt from "bcryptjs"; const prisma = new PrismaClient(); diff --git a/tsconfig.json b/tsconfig.json index cf9c65d..4140b61 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,5 +30,5 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "prisma"] }