Update scripts

This commit is contained in:
freearhey
2025-04-23 23:51:39 +03:00
parent b0a299fad7
commit 01c5aecb46
2 changed files with 17 additions and 11 deletions

View File

@@ -164,11 +164,15 @@ function onFinish(error) {
drawTable()
console.log(chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`))
if (errors > 0 || warnings > 0) {
console.log(
chalk.red(`\n${errors + warnings} problems (${errors} errors, ${warnings} warnings)`)
)
if (errors > 0) {
process.exit(1)
}
}
process.exit(0)
}

View File

@@ -109,6 +109,7 @@ async function main() {
}
}
if (errors.count() || warnings.count()) {
console.log(
chalk.red(
`\n${
@@ -120,6 +121,7 @@ async function main() {
if (errors.count()) {
process.exit(1)
}
}
}
main()