mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-19 21:32:20 +03:00
bin/omniroute.mjs imported getNodeRuntimeSupport/getNodeRuntimeWarning but never called them. On a Node/V8 build predating v-flag regex support, the subsequent tsx/esm + Commander command-registration chain pulls in ora -> string-width, whose top-level v-flag regex literals fail to parse, throwing a bare 'Invalid regular expression flags' SyntaxError instead of a clear runtime-support message. Call the guard right after the --version fast path (and before the heavy import chain), skipping it for the same read-only invocations shouldProvisionStorageKey already exempts.