()
| 3 | import { integrationsFileSchema } from '@deepnote/database-integrations' |
| 4 | |
| 5 | async function run() { |
| 6 | // Dynamic import avoids tsc resolving zod-to-json-schema's deeply nested generics |
| 7 | const { zodToJsonSchema } = (await import('zod-to-json-schema')) as { zodToJsonSchema: (schema: unknown) => unknown } |
| 8 | const jsonSchema = zodToJsonSchema(integrationsFileSchema) |
| 9 | await fs.writeFile(path.join('json-schemas', 'integrations-file-schema.json'), JSON.stringify(jsonSchema, null, 2)) |
| 10 | } |
| 11 | |
| 12 | run() |
| 13 | .then(() => { |
no outgoing calls
no test coverage detected