SPB Git

spb/rareindex

Public
388 B · 10 lines typescript
1import { writeFileSync } from 'node:fs';2import path from 'node:path';3import { fileURLToPath } from 'node:url';4import { openapiDocument } from '../src/openapi.js';56const here = path.dirname(fileURLToPath(import.meta.url));7const out = path.resolve(here, '../../../docs/openapi.json');8writeFileSync(out, JSON.stringify(openapiDocument(), null, 2) + '\n');9console.log(`wrote ${out}`);10
Files · 53054153d0394720cff75a674a7db28a7d97f201
Menu

Theme