@bleed-believer/path-alias
Version:
Assign path alias using tsconfig.json file
17 lines (16 loc) • 528 B
JavaScript
import { CommandRouter } from "./tool/command/command-router.js";
import { BuildCommand } from "./commands/build.command.js";
import { StartCommand } from "./commands/start.command.js";
import { WatchCommand } from "./commands/watch.command.js";
import { logger } from "./logger.js";
try {
const router = new CommandRouter([
BuildCommand,
StartCommand,
WatchCommand
]);
await router.execute();
} catch (err) {
logger.error(err?.message ?? 'Error not identified.');
}