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:

committed by
Kara Erickson

parent
8ea30b662f
commit
26e28453d6
@ -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
11
dev-infra/ng-dev
Executable 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');
|
Reference in New Issue
Block a user