diff options
author | Alan Pearce | 2023-09-15 19:35:23 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-15 19:35:23 +0200 |
commit | 6474b1db0a4f8bdf3c83acd329cf822a9f45f563 (patch) | |
tree | 598a1e3bdc25c4d6f75773925d83a46bbbe19859 /src/config.ts | |
parent | c936c99fad7e090a3caaaa6bdd5fbaf38d39abba (diff) | |
parent | e718339d93e2f60b6df55330aafb2d9536820ce4 (diff) | |
download | website-6474b1db0a4f8bdf3c83acd329cf822a9f45f563.tar.lz website-6474b1db0a4f8bdf3c83acd329cf822a9f45f563.tar.zst website-6474b1db0a4f8bdf3c83acd329cf822a9f45f563.zip |
Merge homestead repository
Diffstat (limited to 'src/config.ts')
-rw-r--r-- | src/config.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts new file mode 100644 index 0000000..064b038 --- /dev/null +++ b/src/config.ts @@ -0,0 +1,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")); +} |