Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

openapi-ts.config.ts

16 lines627 Bytes

1import { defineConfig } from '@hey-api/openapi-ts'
2​
3// Generation input is the emitted spec at the repo root (`pnpm run
4// openapi:emit`). Output is committed; CI fails when it drifts from the spec
5// (pnpm run check:client).
6export default defineConfig({
7 input: '../../openapi.json',
8 output: {
9 path: 'src/generated',
10 postProcess: ['oxfmt'],
11 // `.js` is what nodenext loads. The generator would infer this from a
12 // nodenext tsconfig, but it finds the repo root config, which is bundler.
13 module: { extension: '.js' },
14 },
15 plugins: ['@hey-api/client-fetch', '@hey-api/typescript', '@hey-api/sdk'],
16})