Skip to content

Commit 8a7550f

Browse files
committed
Deadcode removal
1 parent 42479ca commit 8a7550f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/compiler/tsbuild.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,10 +1128,9 @@ namespace ts {
11281128
function buildAllProjects(): ExitStatus {
11291129
if (options.watch) { reportWatchStatus(Diagnostics.Starting_compilation_in_watch_mode); }
11301130
const graph = getGlobalDependencyGraph();
1131-
const queue = graph.buildQueue;
11321131
reportBuildQueue(graph);
11331132
let anyFailed = false;
1134-
for (const next of queue) {
1133+
for (const next of graph.buildQueue) {
11351134
const proj = parseConfigFile(next);
11361135
if (proj === undefined) {
11371136
anyFailed = true;
@@ -1188,13 +1187,9 @@ namespace ts {
11881187
* Report the build ordering inferred from the current project graph if we're in verbose mode
11891188
*/
11901189
function reportBuildQueue(graph: DependencyGraph) {
1191-
if (!options.verbose) return;
1192-
1193-
const names: string[] = [];
1194-
for (const name of graph.buildQueue) {
1195-
names.push(name);
1190+
if (options.verbose) {
1191+
reportStatus(Diagnostics.Projects_in_this_build_Colon_0, graph.buildQueue.map(s => "\r\n * " + relName(s)).join(""));
11961192
}
1197-
if (options.verbose) reportStatus(Diagnostics.Projects_in_this_build_Colon_0, names.map(s => "\r\n * " + relName(s)).join(""));
11981193
}
11991194

12001195
function relName(path: string): string {

0 commit comments

Comments
 (0)