From f6af7b8df09ea3a94447f1aceaecc2756af5dc50 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Thu, 18 Jun 2020 14:31:05 +0100 Subject: [PATCH] chore: fix dependency chart generation (#6039) `--max-depth` stopped the chart including our own modules. What we want instead is the `do-not-follow` option to make it go to infinite depth in our code but stop at the top level of a node module. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ebd092d67486b..0384659ee18f2 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "test-install": "scripts/test-install.sh", "generate-docs": "npm run tsc && api-extractor run --local --verbose && api-documenter markdown -i temp -o new-docs", "ensure-new-docs-up-to-date": "npm run generate-docs && exit `git status --porcelain | head -255 | wc -l`", - "generate-dependency-graph": "echo 'Requires graphviz installed locally!' && depcruise --max-depth 3 --output-type dot src/index.ts | dot -T png > dependency-chart.png" + "generate-dependency-graph": "echo 'Requires graphviz installed locally!' && depcruise --do-not-follow '^node_modules' --output-type dot src/index.ts | dot -T png > dependency-chart.png" }, "files": [ "lib/",