Update scripts

This commit is contained in:
freearhey 2025-04-23 20:56:19 +03:00
parent 696fdf5780
commit ec5cdf0864
15 changed files with 144 additions and 118 deletions

View file

@ -94,14 +94,14 @@ async function main() {
})
if (log.notEmpty()) {
logger.info(`\n${chalk.underline(filepath)}`)
console.log(`\n${chalk.underline(filepath)}`)
log.forEach((logItem: LogItem) => {
const position = logItem.line.toString().padEnd(6, ' ')
const type = logItem.type.padEnd(9, ' ')
const status = logItem.type === 'error' ? chalk.red(type) : chalk.yellow(type)
logger.info(` ${chalk.gray(position)}${status}${logItem.message}`)
console.log(` ${chalk.gray(position)}${status}${logItem.message}`)
})
errors = errors.concat(log.filter((logItem: LogItem) => logItem.type === 'error'))
@ -109,7 +109,7 @@ async function main() {
}
}
logger.error(
console.log(
chalk.red(
`\n${
errors.count() + warnings.count()