mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 11:25:50 -06:00
f49eaf8639
* 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
20 lines
633 B
TypeScript
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;
|