Settings

Theme

Show HN: Importree – Import Dependency Trees for TypeScript Files

importree.js.org

1 points by alexgrozav a month ago · 0 comments · 1 min read

Reader

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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection