From b0c63def3b1568b2f635e70ba1a905086ca6936f Mon Sep 17 00:00:00 2001 From: choidabom <48302257+choidabom@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:03:08 +0900 Subject: [PATCH] Add `postinstall` script for prisma schema generation (#370) * Update README to include database schema generation instruction * Remove README and add `postinstall` in backend/package.json * Fix postinstall command * Fix format --- backend/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/package.json b/backend/package.json index 17ed4360..b21d5b4d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -6,6 +6,7 @@ "license": "Apache-2.0", "scripts": { "build": "nest build", + "postinstall": "pnpm run db:generate", "db:generate": "prisma generate --schema=prisma/schema.prisma", "start": "nest start", "start:dev": "nest start --watch",