18 lines
606 B
TypeScript
18 lines
606 B
TypeScript
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
import { dirname, resolve } from 'node:path';
|
|
|
|
import { buildCurrentGameStoryAuditMarkdown } from '../src/services/storyEngine/storyAuditReport.ts';
|
|
|
|
const defaultOutputPath = resolve(
|
|
process.cwd(),
|
|
'docs/audits/text/CURRENT_GAME_STORY_SOURCE_REVIEW_2026-04-07.md',
|
|
);
|
|
const outputPath = process.argv[2]
|
|
? resolve(process.cwd(), process.argv[2])
|
|
: defaultOutputPath;
|
|
|
|
mkdirSync(dirname(outputPath), { recursive: true });
|
|
writeFileSync(outputPath, buildCurrentGameStoryAuditMarkdown(), 'utf8');
|
|
|
|
console.log(`[story-audit] wrote ${outputPath}`);
|