Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

feat(core): barrel export for the figma module

grumingad22b3796e39
diff --git a/understand-anything-plugin/packages/core/src/figma/index.ts b/understand-anything-plugin/packages/core/src/figma/index.ts
new file mode 100644
index 00000000..042adaa2
--- /dev/null
+++ b/understand-anything-plugin/packages/core/src/figma/index.ts
@@ -0,0 +1,5 @@
+export { parseFileKey, FigmaApiSource } from "./source/api-source.js";
+export type { FigmaSource, FigmaDocument, FigmaStyles, FigmaNode } from "./source/types.js";
+export { parseDocument } from "./parse/parse-document.js";
+export { extractTokens } from "./parse/tokens.js";
+export { mergeDesignGraph, type DesignAnalysis } from "./merge.js";
diff --git a/understand-anything-plugin/packages/core/src/figma/parse/parse-document.ts b/understand-anything-plugin/packages/core/src/figma/parse/parse-document.ts
index d48e9d92..a1affb0c 100644
--- a/understand-anything-plugin/packages/core/src/figma/parse/parse-document.ts
+++ b/understand-anything-plugin/packages/core/src/figma/parse/parse-document.ts
@@ -1,5 +1,5 @@
-import type { GraphNode, GraphEdge } from "../../types";
-import type { FigmaDocument, FigmaNode } from "../source/types";
+import type { GraphNode, GraphEdge } from "../../types.js";
+import type { FigmaDocument, FigmaNode } from "../source/types.js";
function mkNode(
type: GraphNode["type"],
diff --git a/understand-anything-plugin/packages/core/src/figma/parse/tokens.ts b/understand-anything-plugin/packages/core/src/figma/parse/tokens.ts
index 648a83f6..31d42539 100644
--- a/understand-anything-plugin/packages/core/src/figma/parse/tokens.ts
+++ b/understand-anything-plugin/packages/core/src/figma/parse/tokens.ts
@@ -1,5 +1,5 @@
-import type { GraphNode, GraphEdge, FigmaMeta } from "../../types";
-import type { FigmaDocument, FigmaNode, FigmaStyles } from "../source/types";
+import type { GraphNode, GraphEdge, FigmaMeta } from "../../types.js";
+import type { FigmaDocument, FigmaNode, FigmaStyles } from "../source/types.js";
const STYLE_KIND: Record<string, NonNullable<FigmaMeta["tokenKind"]>> = {
FILL: "color", TEXT: "type", EFFECT: "effect", GRID: "grid",
diff --git a/understand-anything-plugin/packages/core/src/figma/source/api-source.ts b/understand-anything-plugin/packages/core/src/figma/source/api-source.ts
index b2e887fc..e07d5589 100644
--- a/understand-anything-plugin/packages/core/src/figma/source/api-source.ts
+++ b/understand-anything-plugin/packages/core/src/figma/source/api-source.ts
@@ -1,4 +1,4 @@
-import type { FigmaSource, FigmaDocument, FigmaStyles } from "./types";
+import type { FigmaSource, FigmaDocument, FigmaStyles } from "./types.js";
const FIGMA_API = "https://api.figma.com/v1";