Are you an LLM? You can read better optimized documentation at /plugins/plugin-barrel/recipes/turn-barrels-off.md for this page in Markdown format
Turn barrels off
Set output.barrel to false so no root index.ts is written and every plugin without its own output.barrel inherits the false.
kubb.config.ts
typescript
import { defineConfig } from 'kubb/config'
import { pluginTs } from '@kubb/plugin-ts'
export default defineConfig({
input: './petStore.yaml',
output: { path: './src/gen', clean: true, barrel: false },
plugins: [pluginTs()],
})