Show HN: Importree – Import Dependency Trees for TypeScript Files(importree.js.org) I built a small library that builds the full import dependency tree for a TypeScript or JavaScript entry file. Given a changed file, it tells you every file that depends on it. This is useful for things like: - selective test runs - cache invalidation - incremental builds - impact analysis when refactoring The main focus is speed. Instead of parsing ASTs, importree scans files using carefully tuned regex, which makes it extremely fast even on large projects. I built it while working on tooling where I needed to quickly determine which parts of a codebase were affected by a change. Hope you'll find it as useful as I do: https://github.com/alexgrozav/importree Happy to answer any questions! |
No comments yet