Skip to content

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
()],
})