async function watcherHandler(changedFiles) {
  console.clear();
  console.log('[WATCHER] Change detected');
  for (const [, value] of Object.entries(changedFiles)) {
    let eventText;
    switch (value.eventType) {
    case 'changed':
      eventText = green(value.eventType);
      break;
    case 'removed':
      eventText = red(value.eventType);
      break;
    case 'renamed':
      eventText = yellow(value.eventType);
      break;
    default:
      eventText = yellow(value.eventType);
    }
    console.log(`\t${magenta(value.path)} was ${eventText}`);
  }
  console.log('Generating files');
  try {
    await generate(program.output);
  } catch (e) {
    showError(e);
  }
}
Generates the files based on the template.
@param {*} targetDir The path to the target directory.