diff --git a/ng-dev/utils/config.ts b/ng-dev/utils/config.ts index d81db0dbc..c98fca748 100644 --- a/ng-dev/utils/config.ts +++ b/ng-dev/utils/config.ts @@ -48,6 +48,14 @@ const USER_CONFIG_FILE_PATH = '.ng-dev.user'; /** The local user configuration for ng-dev. */ let userConfig: {[key: string]: any} | null = null; +/** + * Set the cached configuration object to be loaded later. Only to be used on CI situations in + * which loading from the `.ng-dev/` directory is not possible. + */ +export function setConfig(config: {}) { + cachedConfig = config; +} + /** * Get the configuration from the file system, returning the already loaded * copy if it is defined.