Skip to content

output

output.path

Path to be used to export all generated files.
This can be an absolute path, or a path relative from the defined root option.

  • Type: string
  • Required: true
typescript
import { defineConfig } from '@kubb/core'

export default defineConfig({
  input: {
    path: './petStore.yaml',
  },
  output: {
    path: './src/gen',
  },
})

output.clean

Clean the output directory before each build.

  • Type: boolean
typescript
import { defineConfig } from '@kubb/core'

export default defineConfig({
  input: {
    path: './petStore.yaml',
  },
  output: {
    path: './src/gen',
    clean: true,
  },
})

output.write

Write files to the filesystem.

  • Type: boolean
  • Default: true
typescript
import { defineConfig } from '@kubb/core'

export default defineConfig({
  input: {
    path: './petStore.yaml',
  },
  output: {
    path: './src/gen',
    clean: true,
    write: true,
  },
})

Released under the MIT License.