feat: add JSON schema for quest

This commit is contained in:
Justin Lin committed 2025-04-23 17:40:55 +08:00
1 parent 52e9a13645
commit ab63595fba
6 files changed
+393 -8

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
// 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))