feat(release): Adds docker support
This commit is contained in:
parent
a3c1bae6db
commit
68368ab916
7 changed files with 79 additions and 3 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue