File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments