API Reference / @gtkx/config / loadConfig
Variable: loadConfig
constloadConfig: (cwd,options?) =>Promise<LoadedConfig>
Defined in: loader.d.ts:21
Loads and validates the gtkx.config.ts file for a project, returning the parsed configuration together with the config file path and project root.
Parameters
cwd
string
Directory from which to search for the configuration file.
options?
LoadConfigOptions
Loading options, such as the environment mode.
Returns
Promise<LoadedConfig>