fix
This commit is contained in:
parent
3c4f8629a8
commit
ce3eb571f2
|
|
@ -6,7 +6,7 @@
|
||||||
"dev": "bun clean && bun run --silent --watch ./pkgs/core/index.ts dev",
|
"dev": "bun clean && bun run --silent --watch ./pkgs/core/index.ts dev",
|
||||||
"clean": "rm -rf app/static && rm -rf app/web/.parcel-cache",
|
"clean": "rm -rf app/static && rm -rf app/web/.parcel-cache",
|
||||||
"build": "bun run --silent ./pkgs/core/build.ts",
|
"build": "bun run --silent ./pkgs/core/build.ts",
|
||||||
"deploy": "bun run --silent ./pkgs/core/deploy.ts",
|
"db-pull": "bun run --silent ./pkgs/core/db-pull.ts",
|
||||||
"prod": "bun run --silent ./pkgs/core/index.ts",
|
"prod": "bun run --silent ./pkgs/core/index.ts",
|
||||||
"pull": "cd app/db && bun prisma db pull && bun prisma generate",
|
"pull": "cd app/db && bun prisma db pull && bun prisma generate",
|
||||||
"pkgs-upgrade": "bun run --silent ./pkgs/core/upgrade.ts"
|
"pkgs-upgrade": "bun run --silent ./pkgs/core/upgrade.ts"
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { dir } from "dir";
|
||||||
|
import { $ } from "execa";
|
||||||
|
|
||||||
|
await $({
|
||||||
|
cwd: dir.path("app/db"),
|
||||||
|
stdio: ["ignore", "inherit", "inherit"],
|
||||||
|
})`bun prisma db pull`;
|
||||||
|
await $({
|
||||||
|
cwd: dir.path("app/db"),
|
||||||
|
stdio: ["ignore", "inherit", "inherit"],
|
||||||
|
})`bun prisma generate`;
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
import { dir } from "dir";
|
|
||||||
import { $ } from "execa";
|
|
||||||
|
|
||||||
await $({ cwd: dir.path("app/db") })`bun prisma db pull`;
|
|
||||||
await $({ cwd: dir.path("app/db") })`bun prisma generate`;
|
|
||||||
Loading…
Reference in New Issue