diff --git a/common/changes/@microsoft/rush/enelson-add-timeline-param_2025-01-18-21-32.json b/common/changes/@microsoft/rush/enelson-add-timeline-param_2025-01-18-21-32.json new file mode 100644 index 00000000000..373c94ac8ea --- /dev/null +++ b/common/changes/@microsoft/rush/enelson-add-timeline-param_2025-01-18-21-32.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@microsoft/rush", + "comment": "Allow --timeline option for all phased commands", + "type": "none" + } + ], + "packageName": "@microsoft/rush" +} \ No newline at end of file diff --git a/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts b/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts index 4bc5acf7319..0cb0b85ccff 100644 --- a/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts +++ b/libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts @@ -195,13 +195,13 @@ export class PhasedScriptAction extends BaseScriptAction { ' to specify a count that is equal to the number of CPU cores. If this parameter is omitted,' + ' then the default value depends on the operating system and number of CPU cores.' }); - this._timelineParameter = this.defineFlagParameter({ - parameterLongName: '--timeline', - description: - 'After the build is complete, print additional statistics and CPU usage information,' + - ' including an ASCII chart of the start and stop times for each operation.' - }); } + this._timelineParameter = this.defineFlagParameter({ + parameterLongName: '--timeline', + description: + 'After the build is complete, print additional statistics and CPU usage information,' + + ' including an ASCII chart of the start and stop times for each operation.' + }); this._cobuildPlanParameter = this.defineFlagParameter({ parameterLongName: '--log-cobuild-plan', description: