Reduce code to only work with $PWD
1 file changed, 2 insertions(+), 4 deletions(-)
changed files
M src/config.ts → 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")); }