Update scripts

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

No files matched your search

+10 -8
View File
@@ -109,16 +109,18 @@ async function main() {
}
}
console.log(
chalk.red(
`\n${
errors.count() + warnings.count()
} problems (${errors.count()} errors, ${warnings.count()} warnings)`
if (errors.count() || warnings.count()) {
console.log(
chalk.red(
`\n${
errors.count() + warnings.count()
} problems (${errors.count()} errors, ${warnings.count()} warnings)`
)
)
)
if (errors.count()) {
process.exit(1)
if (errors.count()) {
process.exit(1)
}
}
}