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); process.exit(1);
} }
console.log(`Building at ${process.cwd()}`);
await rm("./dist", { recursive: true }); await rm("./dist", { recursive: true });
await Bun.build({ await Bun.build({
entrypoints: ["./index.ts", "./prisma.ts", "./cli.ts"], entrypoints: ["./index.ts", "./prisma.ts", "./cli.ts"],
outdir: "./dist", outdir: process.cwd() + "/dist",
target: "bun", target: "bun",
splitting: true, splitting: true,
minify: true, minify: true,