mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
Adds a new package under `scripts/internal-dependency-trace` that can be used to generate a rendering of any internal file dependency graph. Default configured to generate the directed dependency graph of `packages/cli/src/index.ts`
9 lines
333 B
Markdown
9 lines
333 B
Markdown
# Internal Dependency Trace
|
|
|
|
This script will generate a [Mermaid](https://mermaid.js.org/intro/) directed graph as an SVG image showing the dependency connections between files starting with the input file as an entrypoint.
|
|
|
|
1. Set input file in `src/index.js`
|
|
1. `pnpm i`
|
|
1. `pnpm generate`
|
|
1. Open `output/trace.svg` in a browser
|