Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

597 B
Raw Blame
import { createClient } from '@hey-api/openapi-ts';
import config from '../openapi-ts.config';

const clients = await createClient(await config);

if (clients.length === 0) {
  throw new Error('SDK generation failed: no clients were generated.');
}

// Keep generated blank lines consistent with repository whitespace checks.
for await (const path of new Bun.Glob('generated/**/*.ts').scan()) {
  const file = Bun.file(path);
  const content = await file.text();
  const normalized = content.replace(/^[\t ]+$/gm, '');

  if (normalized !== content) {
    await Bun.write(file, normalized);
  }
}