LoadConfigDirOptions
Defined in: cli/datapad/src/load-config-dir/load-config-dir.type.ts:21
Options for loading the area files of a config directory from disk.
Properties
Section titled “Properties”areas: readonly
string[]
Defined in: cli/datapad/src/load-config-dir/load-config-dir.type.ts:27
The closed list of area names to look for. Files not named here are never read.
cwd:
string
Defined in: cli/datapad/src/load-config-dir/load-config-dir.type.ts:23
The directory holding dir — normally the one the config file was found in.
dir:
string
Defined in: cli/datapad/src/load-config-dir/load-config-dir.type.ts:25
The directory the areas live in, relative to cwd: ".holocron".
extensions?
Section titled “extensions?”
optionalextensions?: readonlystring[]
Defined in: cli/datapad/src/load-config-dir/load-config-dir.type.ts:36
Override the extension probe order.
shared?
Section titled “shared?”
optionalshared?: readonlystring[]
Defined in: cli/datapad/src/load-config-dir/load-config-dir.type.ts:34
Area names that are also read from the repository root’s dir (the nearest ancestor of cwd with a .git
entry, cwd itself first). A shared area with a file in both places comes back as the one in cwd with the
root’s as root; one that only the root has comes back as the root’s file, its path relative to cwd. The
caller decides how the two combine. When cwd is the root there is nothing to inherit.