Stand up the monorepo skeleton and land the first Phase 0 artifacts: pairing threat model, plugin catalog, builder detect, 20-prompt golden harness, and synthetic 2GB mirror timing.
12 lines
421 B
TypeScript
12 lines
421 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { dirname, join } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import type { SiteFixture } from './types.ts';
|
|
|
|
const goldenRoot = join(dirname(fileURLToPath(import.meta.url)), '..');
|
|
|
|
export function loadSite(id: string): SiteFixture {
|
|
const raw = readFileSync(join(goldenRoot, 'sites', id, 'site.json'), 'utf8');
|
|
return JSON.parse(raw) as SiteFixture;
|
|
}
|