Skip to content

Commit 846efea

Browse files
committed
Use the format output directory as appropriate
1 parent 0111a65 commit 846efea

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/command/render/project.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,17 @@ export async function renderProject(
458458
// call project post-render
459459
if (!projResults.error) {
460460
const outputFiles = projResults.files.map((result) => {
461-
const file = outputDir ? join(outputDir, result.file) : result.file;
461+
const outputDir = projectFormatOutputDir(
462+
result.format,
463+
context,
464+
projType,
465+
);
466+
467+
const file = outputDir
468+
? join(outputDir, result.file)
469+
: join(projDir, result.file);
462470
return {
463-
file: join(projDir, file),
471+
file,
464472
format: result.format,
465473
};
466474
});

0 commit comments

Comments
 (0)