Remove copy-assets.js build step (prompt now bundled in .ts)

This commit is contained in:
Mario Zechner 2026-01-10 13:26:46 +01:00
parent 6dcb64565a
commit 232749ee52
2 changed files with 1 additions and 29 deletions

View file

@ -15,7 +15,7 @@
"scripts": {
"clean": "rm -rf dist",
"generate-models": "npx tsx scripts/generate-models.ts",
"build": "npm run generate-models && tsgo -p tsconfig.build.json && node scripts/copy-assets.js",
"build": "npm run generate-models && tsgo -p tsconfig.build.json",
"dev": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",
"dev:tsc": "tsgo -p tsconfig.build.json --watch --preserveWatchOutput",
"test": "vitest --run",

View file

@ -1,28 +0,0 @@
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}`);