function sortObjectByKey(object) {
  const sortedObject = {};
  for (let keyName of Object.keys(object).sort()) {
    sortedObject[keyName] = object[keyName];
  }
  return sortedObject;
}
/*.js`));
  process.chdir(oldWorkingDirectoryPath);

  const metadata = {
    repository: coffeeMetadata.repository,
    version: coffeeMetadata.version,
    files: Object.assign(coffeeMetadata.files, jsMetadata.files)
  };

  const api = tello.digest([metadata]);
  Object.assign(api.classes, getAPIDocsForDependencies());
  api.classes = sortObjectByKey(api.classes);

  fs.mkdirpSync(CONFIG.docsOutputPath);
  fs.writeFileSync(generatedJSONPath, JSON.stringify(api, null, 2));
};

function getAPIDocsForDependencies() {
  const classes = {};
  for (let apiJSONPath of glob.sync(
    `${CONFIG.repositoryRootPath}/node_modules/