import { cp, mkdir } from 'node:fs/promises';
import { resolve } from 'node:path';

const root = resolve(import.meta.dirname, '..');
const source = resolve(root, 'src/generated');
const target = resolve(root, 'dist/generated');

await mkdir(target, { recursive: true });
await cp(source, target, { recursive: true, force: true });
