Skip to content

loadConfig

loadConfig(configPath?): Promise<LoadedConfig>

Defined in: packages/cli/src/loader.ts:66

Load and parse a sigilry config file.

Supports TypeScript (.ts, .mts) and JavaScript (.js, .mjs) configs. TypeScript files are loaded using tsx/register or similar loaders that the user has configured in their project.

string

Path to the config file (optional, will search if not provided)

Promise<LoadedConfig>

Error if config file not found or invalid