fork of hey-api/openapi-ts because I need some additional things
1import path from 'node:path';
2
3import { defineConfig } from '@hey-api/openapi-ts';
4
5export default defineConfig({
6 input: path.resolve('..', '..', 'specs', '3.1.x', 'openai.yaml'),
7 logs: {
8 path: './logs',
9 },
10 output: {
11 path: './src/client',
12 postProcess: ['oxfmt'],
13 },
14 plugins: [
15 '@hey-api/client-fetch',
16 {
17 enums: 'javascript',
18 name: '@hey-api/typescript',
19 },
20 {
21 instance: 'OpenAI',
22 name: '@hey-api/sdk',
23 },
24 ],
25});