@@ -26,13 +26,13 @@ import { ParameterJson } from '../../data/CommandLineJson';
2626import { RushConstants } from '../../RushConstants' ;
2727
2828export interface ICustomRushActionOptions extends IRushCommandLineActionOptions {
29- parallelized : boolean ;
29+ enableParallelism : boolean ;
3030 ignoreMissingScript : boolean ;
3131 commandLineConfiguration : CommandLineConfiguration ;
3232}
3333
3434export class CustomRushAction extends BaseRushAction {
35- private _parallelized : boolean ;
35+ private _enableParallelism : boolean ;
3636 private _ignoreMissingScript : boolean ;
3737 private _commandLineConfiguration : CommandLineConfiguration ;
3838
@@ -49,7 +49,7 @@ export class CustomRushAction extends BaseRushAction {
4949 options : ICustomRushActionOptions
5050 ) {
5151 super ( options ) ;
52- this . _parallelized = options . parallelized ;
52+ this . _enableParallelism = options . enableParallelism ;
5353 this . _ignoreMissingScript = options . ignoreMissingScript ;
5454 this . _commandLineConfiguration = options . commandLineConfiguration ;
5555 }
@@ -66,8 +66,8 @@ export class CustomRushAction extends BaseRushAction {
6666 const isQuietMode : boolean = ! ( this . _verboseParameter . value ) ;
6767
6868 // if this is parallizable, then use the value from the flag (undefined or a number),
69- // if this is not parallelized , then use 1 core
70- const parallelism : string | undefined = this . _isParallelized ( )
69+ // if parallelism is not enabled , then restrict to 1 core
70+ const parallelism : string | undefined = this . _isParallelismEnabled ( )
7171 ? this . _parallelismParameter ! . value
7272 : '1' ;
7373
@@ -113,7 +113,7 @@ export class CustomRushAction extends BaseRushAction {
113113 }
114114
115115 protected onDefineParameters ( ) : void {
116- if ( this . _isParallelized ( ) ) {
116+ if ( this . _isParallelismEnabled ( ) ) {
117117 this . _parallelismParameter = this . defineStringParameter ( {
118118 parameterLongName : '--parallelism' ,
119119 parameterShortName : '-p' ,
@@ -209,10 +209,10 @@ export class CustomRushAction extends BaseRushAction {
209209 return projects ;
210210 }
211211
212- private _isParallelized ( ) : boolean {
212+ private _isParallelismEnabled ( ) : boolean {
213213 return this . actionName === 'build'
214214 || this . actionName === 'rebuild'
215- || this . _parallelized ;
215+ || this . _enableParallelism ;
216216 }
217217
218218 private _doBeforeTask ( ) : void {
0 commit comments