From 2169e5d18472d2fb4285c893c54d582c8f4f1b06 Mon Sep 17 00:00:00 2001 From: ilia Date: Sat, 3 Jan 2026 10:17:35 -0500 Subject: [PATCH] chore: Add postinstall script for Prisma client generation and remove outdated client symlink - Introduce a postinstall script to automatically generate the Prisma client after installation - Remove the outdated symlink for the Prisma client to streamline project structure and avoid confusion --- .prisma/client | 1 - package.json | 1 + prisma/schema.prisma | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 .prisma/client diff --git a/.prisma/client b/.prisma/client deleted file mode 120000 index b9f4aca..0000000 --- a/.prisma/client +++ /dev/null @@ -1 +0,0 @@ -../node_modules/.prisma/client \ No newline at end of file diff --git a/package.json b/package.json index 89388a2..0a02946 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "test:coverage": "jest --coverage", "test:ci": "jest --ci --coverage --maxWorkers=2", "db:generate": "prisma generate", + "postinstall": "prisma generate", "db:migrate": "prisma migrate dev", "db:push": "prisma db push", "db:studio": "prisma studio", diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 8819e22..9f9216f 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -3,7 +3,6 @@ generator client { provider = "prisma-client-js" - output = "../node_modules/@prisma/client/.prisma/client" } datasource db {