all repos — stealth-developers @ bcf274d3451c1a8d98a6f41022875485cf8040b7

pkgs/db/scripts/db.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
import config from "@stealth-developers/config";

const proc = Bun.spawn([process.execPath, "x", "drizzle-kit", ...Bun.argv.slice(2)], {
	env: {
		PATH: process.env.PATH,
		DATABASE_URL: config.db.url,
		DATABASE_AUTH: config.db.auth,
		DATABASE_DIALECT: config.db.dialect,
	},
	stdout: "inherit",
	stderr: "inherit",
});

await proc.exited;