scripts/utils/index.mjs/writeFile
async function writeFile(file, content) {
  const directory = path.dirname(toPath(file));
  try {
    await fs.mkdir(directory, { recursive: true });
  } catch {
    // noop
  }
  return fs.writeFile(file, content);
}