Try number idk how much

This commit is contained in:
2025-08-10 23:35:20 +02:00
parent 76f2072d61
commit 67ff6a4c19
5 changed files with 11 additions and 3 deletions

View File

@@ -21,6 +21,11 @@ const files = [
eventFiles.map(f => `src/events/${f}`)
].flat()
const banner = [
"process.env.BUILD = 'true'",
process.env.DOCKER === "1" ? "process.env.DOCKER = '1'" : null
].filter(v => typeof v === "string").join("\n")
await Bun.build({
entrypoints: ["src/index.ts", ...files],
outdir: "dist",
@@ -32,5 +37,5 @@ await Bun.build({
asset: "asset/[name]-[hash].[ext]"
},
root: "src",
banner: "process.env.BUILD = 'true'"
banner
})