feat: Improve build system to reduce Docker image to 312 MB

This commit is contained in:
Jesse Wierzbinski 2023-12-08 13:00:47 -10:00
parent 44aaa87f79
commit ecf1139081
No known key found for this signature in database
4 changed files with 60 additions and 13 deletions

View file

@ -1,5 +1,10 @@
// Delete dist directory
import { rm } from "fs/promises";
await rm("./dist", { recursive: true });
await Bun.build({
entrypoints: ["./index.ts"],
entrypoints: ["./index.ts", "./prisma.ts", "./cli.ts"],
outdir: "./dist",
target: "bun",
splitting: true,