@@ -96,18 +96,18 @@ export class CustomRushAction extends BaseRushAction {
9696 }
9797 } ) ;
9898
99- const changedProjectsOnly : boolean = this . actionVerb === 'build' && this . _changedProjectsOnly . value ;
99+ const changedProjectsOnly : boolean = this . actionName === 'build' && this . _changedProjectsOnly . value ;
100100
101101 const tasks : TaskSelector = new TaskSelector (
102102 {
103103 rushConfiguration : this . parser . rushConfiguration ,
104104 toFlags : this . _toFlag . values ,
105105 fromFlags : this . _fromFlag . values ,
106- commandToRun : this . actionVerb ,
106+ commandToRun : this . actionName ,
107107 customFlags,
108108 isQuietMode,
109109 parallelism,
110- isIncrementalBuildAllowed : this . actionVerb === 'build' ,
110+ isIncrementalBuildAllowed : this . actionName === 'build' ,
111111 changedProjectsOnly,
112112 ignoreMissingScript : this . _ignoreMissingScript
113113 }
@@ -116,12 +116,12 @@ export class CustomRushAction extends BaseRushAction {
116116 return tasks . execute ( ) . then (
117117 ( ) => {
118118 stopwatch . stop ( ) ;
119- console . log ( colors . green ( `rush ${ this . actionVerb } (${ stopwatch . toString ( ) } )` ) ) ;
119+ console . log ( colors . green ( `rush ${ this . actionName } (${ stopwatch . toString ( ) } )` ) ) ;
120120 this . _doAfterTask ( stopwatch , true ) ;
121121 } ,
122122 ( ) => {
123123 stopwatch . stop ( ) ;
124- console . log ( colors . red ( `rush ${ this . actionVerb } - Errors! (${ stopwatch . toString ( ) } )` ) ) ;
124+ console . log ( colors . red ( `rush ${ this . actionName } - Errors! (${ stopwatch . toString ( ) } )` ) ) ;
125125 this . _doAfterTask ( stopwatch , false ) ;
126126 this . parser . exitWithError ( ) ;
127127 } ) ;
@@ -155,7 +155,7 @@ export class CustomRushAction extends BaseRushAction {
155155 parameterShortName : '-v' ,
156156 description : 'Display the logs during the build, rather than just displaying the build status summary'
157157 } ) ;
158- if ( this . actionVerb === 'build' ) {
158+ if ( this . actionName === 'build' ) {
159159 this . _changedProjectsOnly = this . defineFlagParameter ( {
160160 parameterLongName : '--changed-projects-only' ,
161161 parameterShortName : '-o' ,
@@ -188,13 +188,13 @@ export class CustomRushAction extends BaseRushAction {
188188 }
189189
190190 private _isParallelized ( ) : boolean {
191- return this . actionVerb === 'build'
192- || this . actionVerb === 'rebuild'
191+ return this . actionName === 'build'
192+ || this . actionName === 'rebuild'
193193 || this . _parallelized ;
194194 }
195195
196196 private _doBeforeTask ( ) : void {
197- if ( this . actionVerb !== 'build' && this . actionVerb !== 'rebuild' ) {
197+ if ( this . actionName !== 'build' && this . actionName !== 'rebuild' ) {
198198 // Only collects information for built-in tasks like build or rebuild.
199199 return ;
200200 }
@@ -203,7 +203,7 @@ export class CustomRushAction extends BaseRushAction {
203203 }
204204
205205 private _doAfterTask ( stopwatch : Stopwatch , success : boolean ) : void {
206- if ( this . actionVerb !== 'build' && this . actionVerb !== 'rebuild' ) {
206+ if ( this . actionName !== 'build' && this . actionName !== 'rebuild' ) {
207207 // Only collects information for built-in tasks like build or rebuild.
208208 return ;
209209 }
@@ -220,14 +220,14 @@ export class CustomRushAction extends BaseRushAction {
220220
221221 this . customOptions . forEach ( ( customOption : ICustomOptionInstance , longName : string ) => {
222222 if ( customOption . parameterValue ! . value ) {
223- extraData [ `${ this . actionVerb } _${ longName } ` ] =
223+ extraData [ `${ this . actionName } _${ longName } ` ] =
224224 customOption . parameterValue ! . value ! . toString ( ) ;
225225 }
226226 } ) ;
227227
228228 if ( this . parser . telemetry ) {
229229 this . parser . telemetry . log ( {
230- name : this . actionVerb ,
230+ name : this . actionName ,
231231 duration : stopwatch . duration ,
232232 result : success ? 'Succeeded' : 'Failed' ,
233233 extraData
0 commit comments