diff options
author | Alan Pearce | 2023-09-18 11:34:52 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-18 11:34:52 +0200 |
commit | fac8d24f1e611224ca6650b03cf0230a7adc6111 (patch) | |
tree | dda24def3ee6fc43a3e4903fbffca1cc86a47637 /src/config.ts | |
parent | 602f249c2cfac0e7b6613fb63f5fb519aa1ca952 (diff) | |
download | website-fac8d24f1e611224ca6650b03cf0230a7adc6111.tar.lz website-fac8d24f1e611224ca6650b03cf0230a7adc6111.tar.zst website-fac8d24f1e611224ca6650b03cf0230a7adc6111.zip |
Reduce code to only work with $PWD
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/config.ts b/src/config.ts index 064b038..8fbe3c1 100644 --- a/src/config.ts +++ b/src/config.ts @@ -2,8 +2,6 @@ import path from "node:path"; import fs from "node:fs"; import toml from "toml"; -export default function readConfig(base: string) { - const filename = path.join(base, "config.toml"); - - return toml.parse(fs.readFileSync(filename, "utf-8")); +export default function readConfig() { + return toml.parse(fs.readFileSync("config.toml", "utf-8")); } |