Files
openclaw/scripts/run-stylelint.mts
T
Josh Lehman f49eaf8639 fix(ci): prevent type-aware lint timeouts on constrained runners (#123328)
* oc-073.1: target UI style lint in changed checks

* oc-073.2: reuse tsgolint programs on hosted CI

* fix(ci): repair lint scope validation

* oc-073.3: restore no-target core lint fallback
2026-08-14 05:43:54 -07:00

20 lines
633 B
TypeScript

// Runs Stylelint through the linked-worktree-aware repository toolchain.
import { spawnSync } from "node:child_process";
import path from "node:path";
import {
ensureRepoToolNodeModulesLink,
resolveRepoToolBinPath,
} from "./lib/local-heavy-check-runtime.mts";
const stylelintPath = resolveRepoToolBinPath("stylelint");
ensureRepoToolNodeModulesLink(stylelintPath);
const result = spawnSync(
stylelintPath,
["--config", path.resolve("config", "stylelint.config.mjs"), ...process.argv.slice(2)],
{ env: process.env, stdio: "inherit" },
);
if (result.error) {
throw result.error;
}
process.exitCode = result.status ?? 1;