async function getPackages(root) {
  const packages = []
  const dependencies = []
  _log('Getting packages from %s', root)

  await listPackages(root, packages)
  await listDependencies(root, dependencies)
  _log('Done getting packages from %s', root)
  return { packages, dependencies }
}
Generic method for getting packages and dependencies relative to a
provided root directory.

@param {string} root - Where to start looking -- doesn't add node_modules.
@returns {object} Two lists, of packages and dependencies, with the
 appropriate names.