Files
openclaw/extensions/diffs/scripts/build-viewer.mjs
Dallin Romney d638611684 feat: split diffs language pack
Split the diffs viewer Shiki language pack into an external publishable plugin.

The diffs plugin keeps the default curated syntax set, while the new @openclaw/diffs-language-pack package carries the extended Shiki languages for npm and ClawHub distribution. The install metadata includes the external ClawHub spec, and the curated C# alias set keeps both c# and cs supported without the language pack.

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-05-27 18:08:40 +01:00

16 lines
510 B
JavaScript

#!/usr/bin/env node
import { spawnSync } from "node:child_process";
import path from "node:path";
import { fileURLToPath } from "node:url";
const pluginRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
const repoRoot = path.resolve(pluginRoot, "../..");
const scriptPath = path.join(repoRoot, "scripts", "build-diffs-viewer-runtime.mjs");
const result = spawnSync(process.execPath, [scriptPath, "curated"], {
cwd: repoRoot,
stdio: "inherit",
});
process.exit(result.status ?? 1);