mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
feat(tooling): enforce noUncheckedIndexedAccess in the scripts lane (NUIA phase 5) (#105180)
* feat(tooling): enforce noUncheckedIndexedAccess in the scripts lane Burns down all 153 scripts-lane errors (bench aggregation, release checks, i18n inventories, argv indexing) and flips the flag in tsconfig.scripts.json. Direct-Node-executed release harness scripts use local narrowing instead of workspace imports, which do not resolve under plain node execution. Benchmark measured loops untouched. * fix(scripts): import expect helpers via relative package sources tsconfig path aliases resolve from cwd under tsx, so release wrapper scripts running against old release target cwds could not resolve @openclaw/normalization-core (not a linked root dependency). Relative package-source imports match the established pattern on the adjacent lines and are cwd-independent; old-target planning verified directly.
This commit is contained in:
committed by
GitHub
parent
d79373fa14
commit
e580275464
@@ -283,7 +283,7 @@ function validateCliArgs(argv: string[]): void {
|
||||
continue;
|
||||
}
|
||||
if (arg.startsWith("--") && arg.includes("=")) {
|
||||
const [flag] = arg.split("=", 1);
|
||||
const flag = arg.slice(0, arg.indexOf("="));
|
||||
if (VALUE_OPTIONS.has(flag)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user