mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
Add more debug info to builds
This commit is contained in:
parent
057ef79092
commit
e328b730ab
4
build.ts
4
build.ts
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue