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

pull/62/head
tycrek 3 years ago
parent b6d6ba558b
commit 9c07e84b34
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -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: {

Loading…
Cancel
Save