UNPKG

@bleed-believer/path-alias

Version:
17 lines (16 loc) 528 B
#! /usr/bin/env node 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.'); }