Skip to content

Commit a116df7

Browse files
committed
Ensure compile and format commands exit with correct status
1 parent 93ece41 commit a116df7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ switch (scriptName) {
2020
process.exit(0);
2121
break;
2222

23-
case "compile":
24-
compile();
25-
process.exit(0);
23+
case "compile": {
24+
const status = compile();
25+
process.exit(status);
2626
break;
27+
}
2728

28-
case "format":
29-
format();
30-
process.exit(0);
29+
case "format": {
30+
const status = format();
31+
process.exit(status);
3132
break;
33+
}
3234

3335
case "help":
3436
help();

0 commit comments

Comments
 (0)