mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 10:17:14 +00:00
use bunx over npx
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
"start": "bun src/index.ts --PORT=3000",
|
||||
"db:start": "docker compose up -d",
|
||||
"db:stop": "docker compose down",
|
||||
"db:migrate": "npx drizzle-kit generate && npx drizzle-kit migrate",
|
||||
"db:push": "npx drizzle-kit push",
|
||||
"db:migrate": "bunx drizzle-kit generate && npx drizzle-kit migrate",
|
||||
"db:push": "bunx drizzle-kit push",
|
||||
"db:reset": "bun scripts/db-reset.ts",
|
||||
"db:seed": "bun scripts/db-seed.ts"
|
||||
},
|
||||
|
||||
@@ -29,7 +29,7 @@ async function resetDatabase() {
|
||||
|
||||
// run migrations to recreate tables
|
||||
console.log("running migrations...");
|
||||
execSync("npx drizzle-kit migrate", {
|
||||
execSync("bunx drizzle-kit migrate", {
|
||||
stdio: "inherit",
|
||||
cwd: `${import.meta.dir}/..`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user