Skip to content

Commit 3d154ab

Browse files
josephperrottmatsko
authored andcommitted
fix(dev-infra): migrate dev-infra config loading to .ng-dev directory (angular#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 angular#37142
1 parent d1ea1f4 commit 3d154ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev-infra/utils/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export type NgDevConfig<T = {}> = CommonConfig&T;
3939
* The filename expected for creating the ng-dev config, without the file
4040
* extension to allow either a typescript or javascript file to be used.
4141
*/
42-
const CONFIG_FILE_NAME = '.ng-dev-config';
42+
const CONFIG_FILE_PATH = '.ng-dev/config';
4343

4444
/** The configuration for ng-dev. */
4545
let CONFIG: {}|null = null;
@@ -52,7 +52,7 @@ export function getConfig(): NgDevConfig {
5252
// If the global config is not defined, load it from the file system.
5353
if (CONFIG === null) {
5454
// The full path to the configuration file.
55-
const configPath = join(getRepoBaseDir(), CONFIG_FILE_NAME);
55+
const configPath = join(getRepoBaseDir(), CONFIG_FILE_PATH);
5656
// Set the global config object.
5757
CONFIG = readConfigFile(configPath);
5858
}

0 commit comments

Comments
 (0)