mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 22:56:49 +00:00
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>
16 lines
510 B
JavaScript
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);
|