fix that build script doesn't end after building

This commit is contained in:
Fynn Haupt 2024-04-04 01:44:38 +02:00
parent f33f67c147
commit e5a4ff6c4e

View File

@ -131,6 +131,7 @@ cli.command('build [root]', 'build for production').action(async (root: string,
try {
await build(inlineConfig)
process.exit(0)
} catch (e) {
const error = e as Error
createLogger(options.logLevel).error(colors.red(`error during build:\n${error.stack}`), { error })