Skip to main content

config package

Classes

ClassDescription
ValidationError

Functions

FunctionDescription
getConfig(config, envs)Returns environment configs merged with global configs.
loadConfig(path)Parses and validates a config file from the specified path.
searchConfig(cwd)Searches config files in the given directory. Returns an empty object when config files does not exist in the directory.
validate(data)Validates data against the configuration schema. It throws a ValidationError when validation failed.

Interfaces

InterfaceDescription
ConfigGlobal config type.
EnvironmentConfigEnvironment config type.