Files
OmniRoute/tests
diegosouzapw 9957d6246f fix(cli): run Node runtime guard before heavy import chain (#12296)
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.
2026-09-10 14:48:13 -03:00
..