diff --git a/src/compiler/tracing.ts b/src/compiler/tracing.ts index 151eb3d311de3..c9b7e3ca991d8 100644 --- a/src/compiler/tracing.ts +++ b/src/compiler/tracing.ts @@ -331,4 +331,5 @@ namespace ts { // eslint-disable-line one-namespace-per-file // define after tracingEnabled is initialized export const startTracing = tracingEnabled.startTracing; + export const dumpTracingLegend = tracingEnabled.dumpLegend; } diff --git a/src/executeCommandLine/executeCommandLine.ts b/src/executeCommandLine/executeCommandLine.ts index bfe40e661cd63..a926f474dd5d6 100644 --- a/src/executeCommandLine/executeCommandLine.ts +++ b/src/executeCommandLine/executeCommandLine.ts @@ -501,7 +501,7 @@ namespace ts { updateSolutionBuilderHost(sys, cb, buildHost); const builder = createSolutionBuilder(buildHost, projects, buildOptions); const exitStatus = buildOptions.clean ? builder.clean() : builder.build(); - tracing?.dumpLegend(); + dumpTracingLegend(); // Will no-op if there hasn't been any tracing return sys.exit(exitStatus); }