import_path
Find the shortest import chain between two files in a TypeScript project. Identifies the most direct dependency path from a starting module to a target, clarifying code relationships.
Instructions
Find the shortest import chain between two files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileA | Yes | Starting module path | |
| fileB | Yes | Target module path | |
| exclude | No | Directories to exclude | |
| tsconfig | No | Path to tsconfig.json | |
| source_root | Yes | Source root directory to analyze | |
| exclude_patterns | No | Regex patterns to exclude files (e.g. "\.d\.ts$" to skip declaration files) |