Try number idk how much
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user