← Files DataARCHIVED FILE

scripts/plugin-paths.mjs

339 Bytes · Nov 19, 2026 · 00:12 UTC

↓ Download file

See the change to this file →

import { existsSync } from "node:fs";
import { join } from "node:path";

export function chartRuntimePath(pluginRoot, name = "") {
  const source = join(pluginRoot, "skills/visualize-data");
  const root = existsSync(join(source, "src/ChartRenderer.jsx")) ? source : join(pluginRoot, "assets/visualize-data");
  return join(root, name);
}

SHA-256: d3e1a4927c6c961c444b4dc9afdce6d37209d6237174eabbc5eb1b9746facb0b