Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
567 B · 26 lines
TypeScript
at commit e173c212
123456789101112131415161718192021222324252627import fs from 'node:fs';import path from 'node:path';import { parseEnv } from 'node:util';
import { defineConfig } from '@hey-api/openapi-python';
import { getInput } from './inputs';import { getPreset } from './python/presets';
process.env = { ...process.env, ...parseEnv(fs.readFileSync(path.resolve(__dirname, '.env'), 'utf-8')),};
export default defineConfig(() => [ { input: getInput(), logs: { path: './logs', }, output: { path: path.resolve(__dirname, 'gen', 'python'), }, plugins: [...getPreset()], },]);