mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
28 lines
656 B
JavaScript
28 lines
656 B
JavaScript
import { copyFileSync, mkdirSync } from "node:fs";
|
|
import { dirname, join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
const packageRoot = join(__dirname, "..");
|
|
|
|
const source = join(
|
|
packageRoot,
|
|
"src",
|
|
"providers",
|
|
"openai-codex",
|
|
"prompts",
|
|
"codex-instructions.md",
|
|
);
|
|
const destination = join(
|
|
packageRoot,
|
|
"dist",
|
|
"providers",
|
|
"openai-codex",
|
|
"prompts",
|
|
"codex-instructions.md",
|
|
);
|
|
|
|
mkdirSync(dirname(destination), { recursive: true });
|
|
copyFileSync(source, destination);
|
|
console.log(`[pi-ai] Copied ${source} -> ${destination}`);
|