mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-11-09 00:22:38 -06:00
20 lines
399 B
TypeScript
20 lines
399 B
TypeScript
import {defineConfig} from '@hey-api/openapi-ts'
|
|
|
|
const input = process.env.VIKUNJA_OPENAPI_INPUT
|
|
if (!input) {
|
|
throw new Error('VIKUNJA_OPENAPI_INPUT must point to the generated temporary spec')
|
|
}
|
|
|
|
export default defineConfig({
|
|
input,
|
|
output: 'src/client/generated',
|
|
plugins: [
|
|
'@hey-api/typescript',
|
|
'@hey-api/sdk',
|
|
{
|
|
name: '@hey-api/client-fetch',
|
|
throwOnError: true,
|
|
},
|
|
],
|
|
})
|