summary refs log tree commit diff stats
path: root/src/config.ts
blob: 064b038b7dcf525b33fc578178eb09e2f6aa766d (plain)
1
2
3
4
5
6
7
8
9
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"));
}