@@ -485,7 +485,7 @@ export function getIgnore (target:string, ignoreFileNames: string): Ignore {
485
485
const files = ignoreFileNames . split ( ',' ) . filter ( Boolean )
486
486
files . forEach ( file => {
487
487
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 ) )
489
489
if ( fs . existsSync ( fullPath ) ) {
490
490
const ignoreFiles = readIgnoreFile ( fullPath )
491
491
returnIgnoreInstance ( ig , ignoreFiles )
@@ -495,15 +495,15 @@ export function getIgnore (target:string, ignoreFileNames: string): Ignore {
495
495
}
496
496
497
497
function readIgnoreFile ( ignoreFile : string ) : string [ ] {
498
- console . log ( 'readIgnoreFile: ignoreFile' , ignoreFile )
498
+ debug ( 'readIgnoreFile: ignoreFile' , ignoreFile )
499
499
const ignoreTargets = [ ] as string [ ]
500
500
fs . readFileSync ( ignoreFile , 'utf8' )
501
501
. split ( / \r ? \n / g)
502
502
. filter ( Boolean )
503
503
. forEach ( ignoreTarget => {
504
504
ignoreTargets . push ( formatPath ( ignoreFile , ignoreTarget ) )
505
505
} )
506
- console . log ( `ignoreTargets ${ ignoreTargets } ` )
506
+ debug ( `ignoreTargets ${ ignoreTargets } ` )
507
507
return ignoreTargets
508
508
}
509
509
0 commit comments