cleanup, add comments, improve output

This commit is contained in:
marlon-erler
2024-07-07 18:16:28 +02:00
parent 600a86711c
commit 9a42fc047f
4 changed files with 60 additions and 47 deletions
+1
View File
@@ -18,6 +18,7 @@ export async function getConfig(): Promise<typeof defaultConfig> {
const configString = await Bun.file(configPath).text();
const configObject = JSON.parse(configString);
// validate config file
Object.keys(defaultConfig).forEach((key) => {
if (!configObject[key]) throw null;
});