Skip to content

Commit 26a6f96

Browse files
committed
Flush telemetry before post rush rebuild event is handled.
1 parent a14c0ac commit 26a6f96

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/rush/src/actions/RebuildAction.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,14 @@ export default class RebuildAction extends BaseRushAction {
141141
stopwatch.stop();
142142
console.log(colors.green(`rush ${this.options.actionVerb} (${stopwatch.toString()})`));
143143
this._collectTelemetry(stopwatch, true);
144-
this.eventHooksManager.handle(Event.postRushBuild, this._parser.isDebug);
145144
this._parser.flushTelemetry();
145+
this.eventHooksManager.handle(Event.postRushBuild, this._parser.isDebug);
146146
},
147147
() => {
148148
stopwatch.stop();
149149
console.log(colors.red(`rush ${this.options.actionVerb} - Errors! (${stopwatch.toString()})`));
150150
this._collectTelemetry(stopwatch, false);
151+
this._parser.flushTelemetry();
151152
this.eventHooksManager.handle(Event.postRushBuild, this._parser.isDebug);
152153
this._parser.exitWithError();
153154
});

0 commit comments

Comments
 (0)