From 3d154ab7952af21ca728b1ce7501f618ad867d29 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Fri, 15 May 2020 14:15:10 -0700 Subject: [PATCH] fix(dev-infra): migrate dev-infra config loading to .ng-dev directory (#37142) Migrate to using .ng-dev directory for ng-dev configuration to better allow management of the configuration using multiple files. The intention is to prevent the config file from becoming unruly. PR Close #37142 --- dev-infra/utils/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-infra/utils/config.ts b/dev-infra/utils/config.ts index 4b5e47bafd..41dd00ee8e 100644 --- a/dev-infra/utils/config.ts +++ b/dev-infra/utils/config.ts @@ -39,7 +39,7 @@ export type NgDevConfig = CommonConfig&T; * The filename expected for creating the ng-dev config, without the file * extension to allow either a typescript or javascript file to be used. */ -const CONFIG_FILE_NAME = '.ng-dev-config'; +const CONFIG_FILE_PATH = '.ng-dev/config'; /** The configuration for ng-dev. */ let CONFIG: {}|null = null; @@ -52,7 +52,7 @@ export function getConfig(): NgDevConfig { // If the global config is not defined, load it from the file system. if (CONFIG === null) { // The full path to the configuration file. - const configPath = join(getRepoBaseDir(), CONFIG_FILE_NAME); + const configPath = join(getRepoBaseDir(), CONFIG_FILE_PATH); // Set the global config object. CONFIG = readConfigFile(configPath); }