Merge branch 'dev' into 'main'
Moved to using variable instead of env See merge request illegitimate/illegitimate-bot!358
This commit is contained in:
@@ -22,8 +22,8 @@ const files = [
|
||||
].flat()
|
||||
|
||||
const banner = [
|
||||
"process.env.BUILD = 'true'",
|
||||
process.env.DOCKER === "1" ? "process.env.DOCKER = '1'" : null
|
||||
"const bun__build = true",
|
||||
process.env.DOCKER === "1" ? "const bun__docker = true" : null
|
||||
].filter(v => typeof v === "string").join("\n")
|
||||
|
||||
await Bun.build({
|
||||
|
||||
5
src/enviroment.d.ts
vendored
5
src/enviroment.d.ts
vendored
@@ -16,4 +16,9 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
const bun__build: boolean | undefined
|
||||
const bun__docker: boolean | undefined
|
||||
}
|
||||
|
||||
export {}
|
||||
|
||||
@@ -7,8 +7,8 @@ import { log } from "./Logger"
|
||||
const client = new Client()
|
||||
const redis = new RedisClient(env.prod.REDISURI)
|
||||
|
||||
const ft = process.env.BUILD !== "true" ? "ts" : "js"
|
||||
const dir = process.env.DOCKER !== "1" ? process.env.BUILD !== "true" ? "src" : "dist" : ""
|
||||
const ft = bun__build !== true ? "ts" : "js"
|
||||
const dir = bun__docker !== true ? bun__build !== true ? "src" : "dist" : ""
|
||||
|
||||
class Illegitimate {
|
||||
async start() {
|
||||
|
||||
Reference in New Issue
Block a user