Skip to content
This repository was archived by the owner on May 31, 2026. It is now read-only.

Commit eb8864a

Browse files
committed
1 parent 0844019 commit eb8864a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

scripts/generateGraphData.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function getAllMarkdownFiles() {
7676
return files;
7777
}
7878

79-
async function main() {
79+
(() => {
8080
console.log("Generating graph data...");
8181

8282
const files = getAllMarkdownFiles();
@@ -138,7 +138,7 @@ async function main() {
138138
.filter(([id]) => linkedNodeIds.has(id))
139139
.map(([id, node]) => {
140140
let color = TAG_COLOR_MAP[node.tags[0]] || DEFAULT_COLOR;
141-
141+
142142
return {
143143
id,
144144
name: node.name,
@@ -185,6 +185,4 @@ async function main() {
185185

186186
console.log(`Generated graph for ${filteredNodes.length} nodes`);
187187
console.log(`Total links: ${validLinks.length}`);
188-
}
189-
190-
main().catch(console.error);
188+
})();

0 commit comments

Comments
 (0)