ci: use dev-infra cli from local sources (#36326)

Use dev-infra cli from local sources rather than loading
from @angular/dev-infra-private builds.

PR Close #36326
This commit is contained in:
Joey Perrott
2020-03-30 10:33:37 -07:00
committed by Kara Erickson
parent 8ea30b662f
commit 26e28453d6
5 changed files with 15 additions and 8 deletions

View File

@ -11,8 +11,9 @@ import {validateFile} from './validate-file';
/** Build the parser for the commit-message commands. */
export function buildCommitMessageParser(localYargs: yargs.Argv) {
return localYargs.help().strict().command(
'pre-commit-validate', 'Validate the most recent commit message', {},
() => { validateFile('.git/COMMIT_EDITMSG'); });
'pre-commit-validate', 'Validate the most recent commit message', {}, () => {
validateFile('.git/COMMIT_EDITMSG');
});
}
if (require.main == module) {