Repository navigation
fix(detector): stop scoring bare package.json as a framework hit - #13965
Conversation
Every JS framework inherited package.json from JS::getFiles(), so any repo with only that file tied at score 1 and collapsed to Angular via fewest-parents. Clear the base file list so detection requires a framework-specific config file or dependency package. Fixes #13911 Co-authored-by: chiragaggarwal5k <[email protected]>
🟢 Tier S · Ready to merge
This change removes
Note @cursor[bot] does not have write access to this repository, so Hansi does not approve automatically. A maintainer can review and approve. 📂 Walkthrough · 2
Reviewed |
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
What does this PR do?
Fixes #13911.
JS::getFiles()listedpackage.jsonfor every JS framework. Any repo with only that file scored a 1 for all detectors, then the fewest-parents tie-break picked Angular — including lodash-only or turborepo-tooling roots with no framework.Clear the base file list so detection requires a framework-specific config file and/or dependency package.
Test Plan
package.jsonfile-only → null; lodash / turbo /{}package contents withpackage.json→ nullbin/monorepo test detector(CI)Related PRs and Issues
Checklist