@dependency-maritime/cli 0.1.0-beta.3 → 0.1.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli/index.js CHANGED
@@ -1223,7 +1223,11 @@ function renderDependencyGraphToDot(graph) {
1223
1223
  edges.sort((a, b) => a.from.localeCompare(b.from) || a.to.localeCompare(b.to) || JSON.stringify(a.dependency).localeCompare(JSON.stringify(b.dependency)));
1224
1224
  const lines = [
1225
1225
  'digraph "dependency-graph" {',
1226
- ' graph [compound="true", rankdir="LR", fontname="Helvetica"];',
1226
+ // Graphviz 2.42 can fail init_rank when the default cluster-local ranker
1227
+ // encounters a large recursively nested directory hierarchy. newrank asks
1228
+ // dot to compute one global ranking across clusters while preserving the
1229
+ // cluster boxes and deterministic left-to-right presentation.
1230
+ ' graph [compound="true", newrank="true", rankdir="LR", fontname="Helvetica"];',
1227
1231
  ' node [fontname="Helvetica", fontsize="10"];',
1228
1232
  ' edge [fontname="Helvetica", fontsize="8"];',
1229
1233
  ...renderDirectory(root, [], " ")
package/dist/cli/main.js CHANGED
@@ -1228,7 +1228,11 @@ function renderDependencyGraphToDot(graph) {
1228
1228
  edges.sort((a, b) => a.from.localeCompare(b.from) || a.to.localeCompare(b.to) || JSON.stringify(a.dependency).localeCompare(JSON.stringify(b.dependency)));
1229
1229
  const lines = [
1230
1230
  'digraph "dependency-graph" {',
1231
- ' graph [compound="true", rankdir="LR", fontname="Helvetica"];',
1231
+ // Graphviz 2.42 can fail init_rank when the default cluster-local ranker
1232
+ // encounters a large recursively nested directory hierarchy. newrank asks
1233
+ // dot to compute one global ranking across clusters while preserving the
1234
+ // cluster boxes and deterministic left-to-right presentation.
1235
+ ' graph [compound="true", newrank="true", rankdir="LR", fontname="Helvetica"];',
1232
1236
  ' node [fontname="Helvetica", fontsize="10"];',
1233
1237
  ' edge [fontname="Helvetica", fontsize="8"];',
1234
1238
  ...renderDirectory(root, [], " ")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dependency-maritime/cli",
3
- "version": "0.1.0-beta.3",
3
+ "version": "0.1.0-beta.4",
4
4
  "type": "module",
5
5
  "main": "./dist/cli/index.js",
6
6
  "types": "./dist/cli/index.d.ts",