Skip to content

Commit

Permalink
refactor: ♻️ do not generate prisma on "postinstall"
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
keinsell committed Apr 23, 2024
1 parent ba48ac9 commit 836f1b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 836f1b5

Please sign in to comment.