src/init.js
function normalizePaths(opts) {
  for (var srcKey in opts.src) {
    if (!path.isAbsolute(opts.src[srcKey].glob)) {
      opts.src[srcKey].glob = path.resolve(opts.src[srcKey].glob);
    }
    if (!path.isAbsolute(opts.src[srcKey].basedir)) {
      opts.src[srcKey].basedir = path.resolve(opts.src[srcKey].basedir);
    }
  }
}
function normalizePaths(opts) {
  for (var srcKey in opts.src) {
    if (!path.isAbsolute(opts.src[srcKey].glob)) {
      opts.src[srcKey].glob = path.resolve(opts.src[srcKey].glob);
    }
    if (!path.isAbsolute(opts.src[srcKey].basedir)) {
      opts.src[srcKey].basedir = path.resolve(opts.src[srcKey].basedir);
    }
  }
}
function normalizePaths ( opts ) { for ( var srcKey in opts . src ) { if ( ! path . isAbsolute ( opts . src [ srcKey ] . glob ) ) { opts . src [ srcKey ] . glob = path . resolve ( opts . src [ srcKey ] . glob ) ; } if ( ! path . isAbsolute ( opts . src [ srcKey ] . basedir ) ) { opts . src [ srcKey ] . basedir = path . resolve ( opts . src [ srcKey ] . basedir ) ; } } }
For relative pathing to work, let's convert all paths in src options to
absolute paths, if they are not already.
@param {Object} opts   Mutated in place.
For relative pathing to work let s convert all paths in src options to absolute paths if they are not already .