all repos — homestead @ 234c9eadf1e7965fc3a6a669696ddae5e2c4ef11

Code for my website

Reduce code to only work with $PWD

Alan Pearce
commit

234c9eadf1e7965fc3a6a669696ddae5e2c4ef11

parent

a95e2842c84b9dba1b2b78cb184139d080f8b5a9

1 file changed, 2 insertions(+), 4 deletions(-)

changed files
M src/config.tssrc/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")); }