@@ -34,35 +34,9 @@ export function buildFormatParser(localYargs: yargs.Argv) {
3434 const executionCmd = check ? checkFiles : formatFiles ;
3535 executionCmd ( allChangedFilesSince ( sha ) ) ;
3636 } )
37- . command (
38- 'files <files..>' , 'Run the formatter on provided files' , { } ,
39- ( { check, files} ) => {
40- const executionCmd = check ? checkFiles : formatFiles ;
41- executionCmd ( files ) ;
42- } )
43- // TODO(josephperrott): remove this hidden command after deprecation period.
44- . command ( 'deprecation-warning [originalCommand]' , false , { } , ( { originalCommand} ) => {
45- console . warn ( `\`yarn ${
46- originalCommand } \` is deprecated in favor of running the formatter via ng-dev`) ;
47- console . warn ( ) ;
48- console . warn ( `As a replacement of \`yarn ${ originalCommand } \`, run:` ) ;
49- switch ( originalCommand ) {
50- case 'bazel:format' :
51- case 'bazel:lint-fix' :
52- console . warn ( ` yarn ng-dev format all` ) ;
53- break ;
54- case 'bazel:lint' :
55- console . warn ( ` yarn ng-dev format all --check` ) ;
56- break ;
57- default :
58- console . warn ( `Error: Unrecognized previous command.` ) ;
59- }
60- console . warn ( ) ;
61- console . warn ( `You can find more usage information by running:` ) ;
62- console . warn ( ` yarn ng-dev format --help` ) ;
63- console . warn ( ) ;
64- console . warn ( `For more on the rationale and effects of this deprecation visit:` ) ;
65- console . warn ( ` https://github.com/angular/angular/pull/36842#issue-410321447` ) ;
37+ . command ( 'files <files..>' , 'Run the formatter on provided files' , { } , ( { check, files} ) => {
38+ const executionCmd = check ? checkFiles : formatFiles ;
39+ executionCmd ( files ) ;
6640 } ) ;
6741}
6842
0 commit comments