Update validate.ts

This commit is contained in:
freearhey 2025-07-28 04:37:21 +03:00
parent 33e58da0ef
commit 38102823f3
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ async function main() {
`${totalProblems} problems (${totalErrors} errors, ${totalWarnings} warnings) in ${totalFiles} file(s)`
)
)
process.exit(1)
if (totalErrors > 0) {
process.exit(1)
}
}
}