fix: resolve build errors

This commit is contained in:
Peter Steinberger
2025-12-23 03:00:04 +01:00
parent 183270b443
commit 279500cba4
5 changed files with 51 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ function isRecord(value: unknown): value is Record<string, unknown> {
return Boolean(value && typeof value === "object" && !Array.isArray(value));
}
async function readJson(pathname: string): Promise<unknown | null> {
async function readJson(pathname: string): Promise<unknown> {
try {
const raw = await fs.readFile(pathname, "utf8");
return JSON.parse(raw) as unknown;