Skip to content

Commit c624773

Browse files
committed
Update build.js
1 parent 8a85a27 commit c624773

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/build.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,4 +570,10 @@ async function main() {
570570
console.log(`${chalk.green('✓')} Min: ${fontsMinCssPath}`);
571571
}
572572

573-
main();
573+
main().then(() => {
574+
console.log('Build script completed successfully.');
575+
process.exit(0);
576+
}).catch(err => {
577+
console.error('Build script failed:', err);
578+
process.exit(1);
579+
});

0 commit comments

Comments
 (0)