findFileInSrc (filename) {
    // scan each source dir to find a valid config file
    // note that any file found here will supersede a previously found file
    for (const dir of this.opt.src) {
      const target = this.path.join(dir, filename);
      if (this.fs.existsSync(target)) {
        this.log.debug('Found file: ' + target);
        return this.path.resolve(target);
      }
    }
    return '';
  }
/**
   * Look for a file in each of the input folders
   */
Look for a file in each of the input folders
Look for a file in each of the input folders
findFileInSrc (filename) {
    for (const dir of this.opt.src) {
      const target = this.path.join(dir, filename);
      if (this.fs.existsSync(target)) {
        this.log.debug('Found file: ' + target);
        return this.path.resolve(target);
      }
    }
    return '';
  }
findFileInSrc ( filename ) { for ( const dir of this . opt . src ) { const target = this . path . join ( dir , filename ) ; if ( this . fs . existsSync ( target ) ) { this . log . debug ( 'Found file: ' + target ) ; return this . path . resolve ( target ) ; } } return '' ; }
Look for a file in each of the input folders
Look for a file in each of the input folders
// scan each source dir to find a valid config file // note that any file found here will supersede a previously found file