lib/ignored-paths.js
function resolveFilepath(filepath, baseDir) {
    if (baseDir) {
        var base = normalizeFilepath(path.resolve(baseDir));
        filepath = removePrefixFromFilepath(filepath, base);
        filepath = removePrefixFromFilepath(filepath, fs.realpathSync(base));
    }
    filepath.replace(/^\//, "");
    return filepath;
}
function resolveFilepath(filepath, baseDir) {
    if (baseDir) {
        var base = normalizeFilepath(path.resolve(baseDir));
        filepath = removePrefixFromFilepath(filepath, base);
        filepath = removePrefixFromFilepath(filepath, fs.realpathSync(base));
    }
    filepath.replace(/^\//, "");
    return filepath;
}
function resolveFilepath ( filepath , baseDir ) { if ( baseDir ) { var base = normalizeFilepath ( path . resolve ( baseDir ) ) ; filepath = removePrefixFromFilepath ( filepath , base ) ; filepath = removePrefixFromFilepath ( filepath , fs . realpathSync ( base ) ) ; } filepath . replace ( / ^\/ / , "" ) ; return filepath ; }
Resolves a filepath
@param {string} filepath Path resolve
@param {string} baseDir Base directory to resolve the filepath from
@returns {string} Resolved filepath
Resolves a filepath