function error (message) {
  console.error(message);
  process.exit(1);
}
/*.{js,mjs,cjs}');
  }

  const files = new Set();

  // For each of the potential globs, we check if it is a directory path and
  // update it so that it matches the JS files in that directory.
  patterns.forEach(pattern => {
    const stat = existsStat(pattern);

    if (stat && stat.isFile()) {
      // Optimisation:
      // For non-glob simple files, skip (slow) directory-wide scanning.
      // https://github.com/qunitjs/qunit/pull/1385
      files.add(pattern);
    } else {
      if (stat && stat.isDirectory()) {
        pattern = `${pattern}/*