From 8b65946eb8af4282c708418288cf38e84b7116ad Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Fri, 8 May 2020 10:03:47 -0700 Subject: [PATCH] feat(dev-infra): support typescript config file (#37017) Previously ng-dev loaded the config through a javascript file, this change allows for the loaded file to be either javascript or typescript. This enables configurations to be written with type safety. PR Close #37017 --- dev-infra/utils/config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-infra/utils/config.ts b/dev-infra/utils/config.ts index 7f68e247c6..b7e0079082 100644 --- a/dev-infra/utils/config.ts +++ b/dev-infra/utils/config.ts @@ -9,8 +9,9 @@ import {join} from 'path'; import {exec} from 'shelljs'; -// The filename expected for creating the ng-dev config. -const CONFIG_FILE_NAME = '.ng-dev-config.js'; +// 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'; /** * Gets the path of the directory for the repository base.