Skip to content

Commit b87c07c

Browse files
committed
Fix filtering of TS5055
See microsoft/TypeScript#51076 (comment)
1 parent c61b0ca commit b87c07c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ export async function getTscRepoResult(
444444

445445
// TS 5055 generally indicates that the project can't be built twice in a row without cleaning in between.
446446
const newErrorList = newErrors.projectErrors.find(pe => pe.projectUrl == projectUrl)?.errors?.filter(e => e.code !== 5055) ?? [];
447-
const oldErrorList = oldProjectErrors.errors;
447+
// Obviously, 5055 doesn't indicate a problem with building twice if it occurs during the first build,
448+
// but it's still not interesting to report that it went away (which we would, since we drop it from `newErrorList`).
449+
const oldErrorList = oldProjectErrors.errors.filter(e => e.code !== 5055);
448450

449451
console.log(`Error counts for ${projectUrl}: new = ${newErrorList.length}, old = ${oldErrorList.length}`);
450452

0 commit comments

Comments
 (0)