From 6ec29a2ab0d1651841d2fd0825353d0c75d5a0d2 Mon Sep 17 00:00:00 2001 From: serge Date: Thu, 29 Feb 2024 11:28:08 +0000 Subject: [PATCH 1/2] fix(prisma): update build and post-install scripts to use npx for prisma commands to ensure they are executed from the correct path --- packages/prisma/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/prisma/package.json b/packages/prisma/package.json index 301b51dbad..27cdf2cfdd 100644 --- a/packages/prisma/package.json +++ b/packages/prisma/package.json @@ -5,10 +5,10 @@ "types": "./index.ts", "license": "MIT", "scripts": { - "build": "prisma generate", + "build": "npx prisma generate", "format": "prisma format", "clean": "rimraf node_modules", - "post-install": "prisma generate", + "post-install": "npx prisma generate", "prisma:generate": "prisma generate", "prisma:migrate-dev": "prisma migrate dev", "prisma:migrate-deploy": "prisma migrate deploy", From 17c607c541054d41a94b76b1f3b9d31491c598b5 Mon Sep 17 00:00:00 2001 From: serge Date: Thu, 29 Feb 2024 11:29:06 +0000 Subject: [PATCH 2/2] chore(prisma): update prisma scripts to use npx to ensure consistent execution across environments --- packages/prisma/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/prisma/package.json b/packages/prisma/package.json index 27cdf2cfdd..ec7d4fe420 100644 --- a/packages/prisma/package.json +++ b/packages/prisma/package.json @@ -9,9 +9,9 @@ "format": "prisma format", "clean": "rimraf node_modules", "post-install": "npx prisma generate", - "prisma:generate": "prisma generate", - "prisma:migrate-dev": "prisma migrate dev", - "prisma:migrate-deploy": "prisma migrate deploy", + "prisma:generate": "npx prisma generate", + "prisma:migrate-dev": "npx prisma migrate dev", + "prisma:migrate-deploy": "npx prisma migrate deploy", "prisma:seed": "prisma db seed" }, "prisma": {