mirror of
https://github.com/prdlk/jobyssey.git
synced 2026-11-02 13:12:49 +00:00
23 lines
1011 B
TypeScript
Executable File
23 lines
1011 B
TypeScript
Executable File
#!/usr/bin/env bun
|
|
// Copies the profile/rubric files the scorer bundles into src/profile/ (gitignored).
|
|
// Run before dev/deploy/typecheck (package.json scripts do). The repo files stay
|
|
// the single source of truth; this is a build artifact, never edited by hand.
|
|
import { mkdirSync, copyFileSync } from "node:fs";
|
|
import { join, resolve } from "node:path";
|
|
|
|
const worker = resolve(import.meta.dir, "..");
|
|
const repo = resolve(worker, "../..");
|
|
const out = join(worker, "src/profile");
|
|
|
|
const files: Record<string, string> = {
|
|
"candidate-profile.md": ".claude/skills/job-application-assistant/01-candidate-profile.md",
|
|
"job-evaluation.md": ".claude/skills/job-application-assistant/04-job-evaluation.md",
|
|
"search-queries.md": ".claude/skills/job-scraper/search-queries.md",
|
|
};
|
|
|
|
mkdirSync(out, { recursive: true });
|
|
for (const [dest, src] of Object.entries(files)) {
|
|
copyFileSync(join(repo, src), join(out, dest));
|
|
}
|
|
console.log(`bundled ${Object.keys(files).length} profile files into src/profile/`);
|