Skip to content

Commit

Permalink
[bin/import-restrictions-mermaid-diagram] Flip the diagram for better…
Browse files Browse the repository at this point in the history
… topological sorting.
  • Loading branch information
lgarron committed Jul 19, 2022
1 parent e073576 commit c46ac2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/import-restrictions-mermaid-diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { targetInfos } from "../../script/test/import-restrictions/target-infos"
console.log("graph TD");
for (const [target, targetInfo] of Object.entries(targetInfos)) {
for (const direct of targetInfo.deps.direct) {
console.log(` ${target} --> ${direct}`);
console.log(` ${direct} --> ${target}`);
}
for (const dynamic of targetInfo.deps.dynamic) {
console.log(` ${target} -.-> ${dynamic}`);
console.log(` ${dynamic} -.-> ${target}`);
}
}
console.log("%% Paste into: https://mermaid.live/");

0 comments on commit c46ac2a

Please sign in to comment.