Skip to content

Commit 128c9b0

Browse files
committed
Properly move project resources
Fixes #4245
1 parent dc1f3fa commit 128c9b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/command/render/project.ts

+10
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,16 @@ export async function renderProject(
460460
// Expand the resources into the format aware targets
461461
// srcPath -> Set<destinationPaths>
462462
const resourceFilesToCopy: Record<string, Set<string>> = {};
463+
464+
// Process the project resources
465+
context.files.resources?.forEach((resource) => {
466+
resourceFilesToCopy[resource] = resourceFilesToCopy[resource] ||
467+
new Set();
468+
const relativePath = relative(context.dir, resource);
469+
resourceFilesToCopy[resource].add(join(projOutputDir, relativePath));
470+
});
471+
472+
// Process the resources provided by the files themselves
463473
projResults.files.forEach((file) => {
464474
const formatOutputDir = projectFormatOutputDir(
465475
file.format,

0 commit comments

Comments
 (0)