scripts/update-version.js
function updateFiles(currentVersion, nextVersion) {
  process.stdout.write(`Updating ${currentVersion} ➞ ${nextVersion}:\n`);
  return Promise.all(filesToUpdate.map(relativePath =>
    updateVersionInFile(currentVersion, nextVersion, relativePath)
  ));
}
function updateFiles(currentVersion, nextVersion) {
  process.stdout.write(`Updating ${currentVersion} ➞ ${nextVersion}:\n`);
  return Promise.all(filesToUpdate.map(relativePath =>
    updateVersionInFile(currentVersion, nextVersion, relativePath)
  ));
}
Tasks