Skip to content

Commit 2f66b9b

Browse files
committed
cleanup
1 parent 8fa63bb commit 2f66b9b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/command/render/project.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ export async function renderProject(
423423
});
424424

425425
// Expand the resources into the format aware targets
426+
// srcPath -> Set<destinationPaths>
426427
const resourceFilesToCopy: Record<string, Set<string>> = {};
427428
projResults.files.forEach((file) => {
428429
const formatOutputDir = projectFormatOutputDir(
@@ -437,25 +438,19 @@ export async function renderProject(
437438
});
438439
});
439440

440-
let count = 0;
441-
let duped = 0;
441+
// Actually copy the resource files
442442
Object.keys(resourceFilesToCopy).forEach((srcPath) => {
443443
const destinationFiles = resourceFilesToCopy[srcPath];
444444
destinationFiles.forEach((destPath: string) => {
445445
if (existsSync(srcPath)) {
446446
if (Deno.statSync(srcPath).isFile) {
447447
copyResourceFile(context.dir, srcPath, destPath);
448-
console.log(destPath);
449-
count++;
450448
}
451449
} else if (!existsSync(destPath)) {
452450
warning(`File '${srcPath}' was not found.`);
453-
} else {
454-
duped++;
455451
}
456452
});
457453
});
458-
console.log(`${count} files copied, ${duped} dupes`);
459454
} else {
460455
for (const result of fileResults.files) {
461456
const resourceFiles = await resourcesFrom(result);

0 commit comments

Comments
 (0)