Update bundler. Handle non-existent file error.

This commit is contained in:
2026-03-21 16:35:30 +01:00
parent 632c70fc90
commit 4ee3876710
18 changed files with 194 additions and 200 deletions
+6 -3
View File
@@ -4,6 +4,7 @@ import { program } from "commander";
import start from "./start";
import dev from "./dev";
import build from "./build";
import { log } from "../utils/log";
/**
* # Describe Program
@@ -24,10 +25,12 @@ program.addCommand(build());
* # Handle Unavailable Commands
*/
program.on("command:*", () => {
console.error(
"Invalid command: %s\nSee --help for a list of available commands.",
program.args.join(" "),
log.error(
"Invalid command: %s\nSee --help for a list of available commands." +
" " +
program.args.join(" "),
);
process.exit(1);
});