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
This commit is contained in:
Joey Perrott 2020-05-08 10:03:47 -07:00 committed by Misko Hevery
parent de0c71c467
commit 8b65946eb8
1 changed files with 3 additions and 2 deletions

View File

@ -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.