Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

source-silent.ts

18 lines749 Bytes

1/**
2 * The source-silent ledger (`docs/source-silent/<provider>.md`), bundled at
3 * build time so the Worker scores completeness with the same files
4 * `bun run gap:report` reads from disk. Vite and vitest transform
5 * `import.meta.glob`; bun does not, so the script reads them with `fs`.
6 */
7import { parseLedger } from '#/lib/completeness.ts'
8import { parseSourceSilentEvidence } from './source-silent-facts.ts'
9​
10const files = import.meta.glob<string>(
11 ['../../docs/source-silent/*.md', '!**/README.md'],
12 { query: '?raw', import: 'default', eager: true },
14​
15const markdown = Object.values(files).join('\n')
16​
17export const sourceSilentLedger = parseLedger(markdown)
18export const sourceSilentEvidenceLedger = parseSourceSilentEvidence(markdown)