mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
9 lines
292 B
TypeScript
9 lines
292 B
TypeScript
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
import { zodToJsonSchema } from 'zod-to-json-schema'
|
|
import fs from 'fs'
|
|
import { questSchema } from './schema'
|
|
|
|
const jsonSchema = zodToJsonSchema(questSchema)
|
|
|
|
fs.writeFileSync('quest.json', JSON.stringify(jsonSchema, null, 2))
|