@@ -485,7 +485,7 @@ export function getIgnore (target:string, ignoreFileNames: string): Ignore {
485485 const files = ignoreFileNames . split ( ',' ) . filter ( Boolean )
486486 files . forEach ( file => {
487487 const fullPath = resolve ( path . join ( target , path . normalize ( file ) ) )
488- console . log ( 'fullpaht ', fullPath , fs . existsSync ( fullPath ) )
488+ debug ( 'getIgnore: fullpath ', fullPath , fs . existsSync ( fullPath ) )
489489 if ( fs . existsSync ( fullPath ) ) {
490490 const ignoreFiles = readIgnoreFile ( fullPath )
491491 returnIgnoreInstance ( ig , ignoreFiles )
@@ -495,15 +495,15 @@ export function getIgnore (target:string, ignoreFileNames: string): Ignore {
495495}
496496
497497function readIgnoreFile ( ignoreFile : string ) : string [ ] {
498- console . log ( 'readIgnoreFile: ignoreFile' , ignoreFile )
498+ debug ( 'readIgnoreFile: ignoreFile' , ignoreFile )
499499 const ignoreTargets = [ ] as string [ ]
500500 fs . readFileSync ( ignoreFile , 'utf8' )
501501 . split ( / \r ? \n / g)
502502 . filter ( Boolean )
503503 . forEach ( ignoreTarget => {
504504 ignoreTargets . push ( formatPath ( ignoreFile , ignoreTarget ) )
505505 } )
506- console . log ( `ignoreTargets ${ ignoreTargets } ` )
506+ debug ( `ignoreTargets ${ ignoreTargets } ` )
507507 return ignoreTargets
508508}
509509
0 commit comments