Update bundler. Handle non-existent file error.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user