diff --git a/.github/workflows/typescript-all-files-check.yml b/.github/workflows/typescript-all-files-check.yml index 768dafb2987..41c2dbb2d69 100644 --- a/.github/workflows/typescript-all-files-check.yml +++ b/.github/workflows/typescript-all-files-check.yml @@ -39,5 +39,5 @@ jobs: working-directory: ./targetBranch run: npm ci - - name: Check untouched files + - name: Check files for increased error count run: npx ts-node scripts/checkAllFilesForTypeErrorCount.ts diff --git a/scripts/checkAllFilesForTypeErrorCount.ts b/scripts/checkAllFilesForTypeErrorCount.ts index 994841d777f..b9301f6fdc1 100644 --- a/scripts/checkAllFilesForTypeErrorCount.ts +++ b/scripts/checkAllFilesForTypeErrorCount.ts @@ -98,7 +98,7 @@ const errorCount = Object.keys(fileToCheck); if (errorCount.length) { logSmartTable(fileToCheck); console.log( - '\nHere are the files that your PR did not touch but increased in Typescript error count: ', + '\nHere are the files that increased in Typescript error count as a result of your PR: ', errorCount.length, ); process.exit(1);