Add more debug info to builds

This commit is contained in:
Jesse Wierzbinski 2023-12-08 16:56:00 -10:00
parent 057ef79092
commit e328b730ab
No known key found for this signature in database

View file

@ -6,11 +6,13 @@ if (!(await exists("./pages/dist"))) {
process.exit(1);
}
console.log(`Building at ${process.cwd()}`);
await rm("./dist", { recursive: true });
await Bun.build({
entrypoints: ["./index.ts", "./prisma.ts", "./cli.ts"],
outdir: "./dist",
outdir: process.cwd() + "/dist",
target: "bun",
splitting: true,
minify: true,