Skip to content

Commit

Permalink
chore: rectify the package version
Browse files Browse the repository at this point in the history
  • Loading branch information
mistgc committed Jul 26, 2024
1 parent b70258e commit d307ea0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "node-deps-analyser",
"license": "MIT",
"version": "1.0.0",
"scripts": {
"compile": "npx tsc"
},
Expand Down
5 changes: 4 additions & 1 deletion src/graphviz/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Package } from "../core/package";
import { toStream, Format } from "@ts-graphviz/adapter";
import * as graphviz from "ts-graphviz";
import { attribute as attr } from "ts-graphviz";

export function generateGraphsImageStream(root: Package, format: Format.values = "svg"): Promise<NodeJS.ReadableStream> {
let g = new graphviz.Digraph();
Expand All @@ -14,7 +15,9 @@ export function generateGraphsImageStream(root: Package, format: Format.values =
});

p.devDeps.forEach((dep) => {
g.createEdge([node, lambda(dep)]);
g.createEdge([node, lambda(dep)], {
[attr.color]: "blue"
});
});

return node;
Expand Down

0 comments on commit d307ea0

Please sign in to comment.