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) {

11
dev-infra/ng-dev Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env ts-node
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Loads the ng-dev cli, automatically executing it.
require('./cli.ts');