mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 02:45:38 -06:00
bf9b25ab7e
* fix(gateway): avoid repeated control-plane scans * fix(tooling): allow concurrent worktree validation * fix(ci): refresh protocol and runner inputs * perf(ui): defer hidden session refreshes * fix(ui): resolve session refresh lint failure * fix(update): preserve pre-cache update channel * fix(update): normalize cached update channel * fix(gateway): lifecycle-cache update install identity * fix(ui): preserve manual history retry after layout scroll * test(codex): repair side-question tool schema fixture
20 lines
627 B
TypeScript
20 lines
627 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-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;
|