Skip to content

Commit 494a5f0

Browse files
committed
tests - support detecting output-dir key for default project type
1 parent 4b83309 commit 494a5f0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export function findProjectOutputDir(projectdir: string | undefined) {
5353
} catch (error) {
5454
throw new Error("Failed to read quarto project YAML", error);
5555
}
56-
5756
if (type === "book") {
5857
return "_book";
5958
}
@@ -63,6 +62,10 @@ export function findProjectOutputDir(projectdir: string | undefined) {
6362
if (type === "manuscript") {
6463
return (yaml as any)?.project?.["output-dir"] || "_manuscript";
6564
}
65+
if (type === "default") {
66+
return (yaml as any)?.project?.["output-dir"];
67+
}
68+
return (yaml as any)?.project?.["output-dir"];
6669
}
6770

6871
// Gets output that should be created for this input file and target format

0 commit comments

Comments
 (0)