get_module_dependencies
Resolve and display all import dependencies of a TypeScript file, including what it imports and what imports it, using the TypeScript compiler to handle path aliases and package entry points.
Instructions
Show what a file imports and what imports it, resolved through the TypeScript compiler so tsconfig "paths" aliases and package entry points are handled correctly. Covers static imports, re-exports, dynamic import() and require(). Includes efferent/afferent coupling and instability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the file (relative to project root) | |
| direction | No | Which edges to return: what this file imports, what imports it, or both (default: both). | |
| includeExternal | No | Include modules outside the project such as node_modules (default: false). |