mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 15:03:31 +00:00
Remove copy-assets.js build step (prompt now bundled in .ts)
This commit is contained in:
parent
6dcb64565a
commit
232749ee52
2 changed files with 1 additions and 29 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue