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:
Peter Steinberger
2026-07-12 10:17:00 +01:00
committed by GitHub
parent d79373fa14
commit e580275464
38 changed files with 204 additions and 97 deletions
@@ -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;
}