Skip to content

Commit

Permalink
feat: add schema to jsonschema exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Jul 19, 2024
1 parent b250c7d commit fac9891
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/cli/src/linter/exporter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { writeFileSync } from 'fs';
import zodToJsonSchema from 'zod-to-json-schema';

import { ConfigurationSchema } from './schema';

writeFileSync(
'schema.json',
JSON.stringify(zodToJsonSchema(ConfigurationSchema)),
);

0 comments on commit fac9891

Please sign in to comment.