CoolFace
Apppublic

delqhi/sin-github-issues

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
postbuild.mjs18 linesDownload Raw Back to scripts
1import { mkdir, copyFile } from 'node:fs/promises';2import { dirname, resolve } from 'node:path';3 4const root = resolve(new URL('..', import.meta.url).pathname);5const targets = [6  ['agent.json', 'dist/agent.json'],7  ['mcp-config.json', 'dist/mcp-config.json'],8  ['A2A-CARD.md', 'dist/A2A-CARD.md'],9];10 11for (const [sourceRelative, targetRelative] of targets) {12  const source = resolve(root, sourceRelative);13  const target = resolve(root, targetRelative);14  await mkdir(dirname(target), { recursive: true });15  await copyFile(source, target);16}17 18