scripts/pathResolver.js
function getAbsPath(...relativePathPartsToRoot) {
    const { resolve, join } = path;

    return fs.existsSync(relativePathPartsToRoot[0])
      ? resolve(join(...relativePathPartsToRoot))
      : resolve(join(getRepoRootAbsPath(), ...relativePathPartsToRoot));
  }
function getAbsPath(...relativePathPartsToRoot) {
    const { resolve, join } = path;

    return fs.existsSync(relativePathPartsToRoot[0])
      ? resolve(join(...relativePathPartsToRoot))
      : resolve(join(getRepoRootAbsPath(), ...relativePathPartsToRoot));
  }
function getAbsPath ( ... relativePathPartsToRoot ) { const { resolve , join } = path ; return fs . existsSync ( relativePathPartsToRoot [ 0 ] ) ? resolve ( join ( ... relativePathPartsToRoot ) ) : resolve ( join ( getRepoRootAbsPath ( ) , ... relativePathPartsToRoot ) ) ; }
Returns the absolute path resolved from zero or more path parts.
@param {...string} relativePathPartsToRoot File system path parts.
@return {string}
Returns the absolute path resolved from zero or more path parts .