export function dirExists(dirName: string): boolean {
  try {
    const dirStat = fs.statSync(dirName);
    return dirStat.isDirectory();
  } catch {