Files
dify/web/plugins/hey-api-orpc/config.ts
2026-01-24 23:11:27 +08:00

20 lines
443 B
TypeScript

import type { OrpcPlugin } from './types'
import { definePluginConfig } from '@hey-api/openapi-ts'
import { handler } from './plugin'
export const defaultConfig: OrpcPlugin['Config'] = {
config: {
baseName: 'base',
exportFromIndex: false,
generateRouter: true,
output: 'orpc',
},
dependencies: ['@hey-api/typescript', 'zod'],
handler,
name: 'orpc',
}
export const defineConfig = definePluginConfig(defaultConfig)