feat(release): Adds docker support

This commit is contained in:
Michel Fedde 2025-06-22 17:51:21 +02:00
parent a3c1bae6db
commit 68368ab916
7 changed files with 79 additions and 3 deletions

View file

@ -1,5 +1,7 @@
import dotenv from "dotenv";
import path from "node:path";
import * as fs from "node:fs";
import {dot} from "node:test/reporters";
type DiscordEnvironment = {
token: string;
@ -27,8 +29,14 @@ export class Environment {
}
public setup() {
const dotenvPath = path.resolve(__dirname, "../environment/.env");
if (!fs.existsSync(dotenvPath)) {
return;
}
dotenv.config({
path: path.resolve(__dirname, "../environment/.env"),
path: dotenvPath,
});
}
}