Rezygnacja z bazy, przeniesienie danych do plików yamla

This commit is contained in:
dm
2025-12-15 06:30:39 +01:00
parent 00d6a57d74
commit 0b6bbbdce7
55 changed files with 3558 additions and 1545 deletions

7
src/lib/loadYaml.ts Normal file
View File

@@ -0,0 +1,7 @@
import fs from "node:fs";
import yaml from "js-yaml";
export function loadYamlFile<T>(filePath: string): T {
const raw = fs.readFileSync(filePath, "utf8");
return yaml.load(raw) as T;
}