index.js
function loadPaths (pkg) {
  const name = pkg.name
  const file = pkg.path
  return resolveFile(tmp, path.join(name, file)).then(entry => ({
    entry: entry,
    package: path.join(tmp, 'node_modules', name, 'package.json')
  }))
}
function loadPaths (pkg) {
  const name = pkg.name
  const file = pkg.path
  return resolveFile(tmp, path.join(name, file)).then(entry => ({
    entry: entry,
    package: path.join(tmp, 'node_modules', name, 'package.json')
  }))
}
function loadPaths ( pkg ) { const name = pkg . name const file = pkg . path return resolveFile ( tmp , path . join ( name , file ) ) . then ( entry => ( { entry : entry , package : path . join ( tmp , 'node_modules' , name , 'package.json' ) } ) ) }
Given package details loads resolved package and entry files.

@param {object} pkg - the parsed package details.
@return {Promise}
Given package details loads resolved package and entry files .