Skip to content

root ​

Project root directory. Can be an absolute path, or a path relative to the location of the config file itself.

  • Type: string
  • Default: process.cwd()
typescript
import { defineConfig } from '@kubb/core'

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

Released under the MIT License.