scripts/vendors/bundle-vendors.mjs/generateDts
async function generateDts({ vendor, module }) {
  const hasDefault = Boolean(module.default);
  await fs.writeFile(
    path.join(vendorsDirectory, `${vendor}.d.ts`),
    [
      "// This file is generated automatically.",
      hasDefault ? `export {default} from "${vendor}";` : null,
      `export * from "${vendor}";`,
      "",
    ]
      .filter((line) => line !== null)
      .join("\n"),
    "utf8"
  );
}