Skip to content

LoadConfigFileOptions

Defined in: cli/datapad/src/load-config-file/load-config-file.type.ts:2

Options for finding and loading a config file from disk.

cwd: string

Defined in: cli/datapad/src/load-config-file/load-config-file.type.ts:4

Directory to start looking in.


optional extensions?: readonly string[]

Defined in: cli/datapad/src/load-config-file/load-config-file.type.ts:8

Override the extension probe order.


name: string

Defined in: cli/datapad/src/load-config-file/load-config-file.type.ts:6

Base name — "holocron" resolves holocron.config.{ts,js,mjs,cjs,json}.


optional walkUp?: boolean

Defined in: cli/datapad/src/load-config-file/load-config-file.type.ts:16

Walk upward through ancestor directories when cwd itself has no match, stopping at the first directory containing a .git entry (that directory is still searched before stopping) or the filesystem root. Off by default — exact-cwd-only, unchanged behavior for any existing caller that doesn’t pass this.