TransitiveDependencyDetector should ignore type-only imports
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 20
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Given
Package A
export interface Foo {}
Package B
import { Foo } from 'A';
{ "devDependencies": { "A": "0.0.0" }}
Expected
Runs with no errors
Actual
TransitiveDependencyDetector complains that 'A' is not properly declared as a dependency
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the TransitiveDependencyDetector and reproduce the two-package TypeScript example from the issue, where Package B imports an interface from A and lists A only in devDependencies. Done means the detector reports no error for this type-only import while continuing to check runtime imports.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100