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"));
}