Skip to content

Commit f60a9ff

Browse files
committed
yaml - default empty metadafile to {}
1 parent 9d75330 commit f60a9ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/project/project-shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ export async function directoryMetadataForInputFile(
329329
file,
330330
frontMatterSchema,
331331
errMsg,
332+
"{}",
332333
)) || {}) as Record<string, unknown>;
333334

334335
// resolve format into expected structure
@@ -611,7 +612,7 @@ export async function projectResolveBrand(
611612
}
612613
if (typeof brand.dark === "string") {
613614
dark = await loadRelativeBrand(brand.dark);
614-
} else if(brand.dark) {
615+
} else if (brand.dark) {
615616
dark = new Brand(
616617
brand.dark,
617618
dirname(fileName),

0 commit comments

Comments
 (0)