This commit is contained in:
Rizky 2024-01-25 13:51:52 +07:00
parent 8876b86d8f
commit 3b983c1cea
1 changed files with 0 additions and 2 deletions

View File

@ -6,8 +6,6 @@ import { g } from "./global";
export const preparePrisma = async () => {
if (await existsAsync(dir("app/db/.env"))) {
if (!(await existsAsync(dir("node_modules/.prisma")))) {
await $({ cwd: dir(`app/db`) })`bun install`;
await $({ cwd: dir(`app/db`) })`bun prisma db pull`;
await $({ cwd: dir(`app/db`) })`bun prisma generate`;
}
const { PrismaClient } = await import("../../app/db/db");