use `process.cwd()` instead of `__dirname` for `path.join`

This commit is contained in:
tycrek 2021-09-07 19:07:43 -06:00
parent b6d6ba558b
commit 9c07e84b34
No known key found for this signature in database
GPG Key ID: 25D74F3943625263
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ function getDatedDirname() {
}
// Set up pathing & the logger
const path = (...paths) => Path.join(__dirname, ...paths);
const path = (...paths) => Path.join(process.cwd(), ...paths);
const logger = new TLog({
level: process.env.LOG_LEVEL || (process.env.NODE_ENV === 'production' ? 'info' : 'debug'),
timestamp: {