src/config/file-utils.js
function resolvePrefixAndFile (nonAbsoluteFilePath, prefix) {
  // prefix is not absolute
  if (path.parse(prefix).root === '') {
    return path.resolve(process.cwd(), prefix, nonAbsoluteFilePath)
  }

  // prefix is absolute
  return path.resolve(prefix, nonAbsoluteFilePath)
}
function resolvePrefixAndFile (nonAbsoluteFilePath, prefix) {
  // prefix is not absolute
  if (path.parse(prefix).root === '') {
    return path.resolve(process.cwd(), prefix, nonAbsoluteFilePath)
  }

  // prefix is absolute
  return path.resolve(prefix, nonAbsoluteFilePath)
}
function resolvePrefixAndFile ( nonAbsoluteFilePath , prefix ) { // prefix is not absolute if ( path . parse ( prefix ) . root === '' ) { return path . resolve ( process . cwd ( ) , prefix , nonAbsoluteFilePath ) } // prefix is absolute return path . resolve ( prefix , nonAbsoluteFilePath ) }
Append the prefix to the current working directory,
or use it as an absolute path

@param   {String} nonAbsoluteFilePath
@param   {String} prefix

@private
@returns {String} resolvedPath
Append the prefix to the current working directory or use it as an absolute path