From 836f1b53d8b223671d5d0ec7d5d1bfa98f934570 Mon Sep 17 00:00:00 2001 From: Jakub Olan Date: Tue, 23 Apr 2024 17:38:40 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20do=20not=20gen?= =?UTF-8?q?erate=20prisma=20on=20"postinstall"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates the 'prepare' script on the package.json file, removing the redundant 'db:generate' command. This change simplifies the script execution and avoids unnecessary database generation on every install. Furthermore, a new .gitignore file was added to the infrastructure folder in order to ignore all files within .terraform directory, keeping the repository cleaner and preventing unwanted files from being tracked. --- apps/server/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/server/package.json b/apps/server/package.json index 342bf01a..4706c4c6 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -37,8 +37,7 @@ "db:reset": "prisma db push --force-reset --accept-data-loss", "db:pull": "prisma db pull", "db:studio": "prisma studio", - "postinstall": "pnpm run db:generate", - "prepare": "ts-patch install && typia patch -s && pnpm run db:generate", + "prepare": "ts-patch install && typia patch -s", "sentry:sm:inject": "sentry-cli sourcemaps inject dist --org sentry", "sentry:sm:upload": "sentry-cli sourcemaps upload dist --org sentry --project orca" },