Replies: 1 comment
-
|
update: I have made a npm lib where it logs the any feedback would be nice |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Since Turborepo builds only the changed and affected packages, it needs a DAG (directed acyclic graph) that tracks package dependencies. While reading the implementation, I noticed that recursion stops when a package.json is found in a directory, so that folder becomes a node in the graph and traversal doesn’t go deeper.
I also noticed that the DAG generation part is implemented in Rust for performance reasons.
Is this understanding correct?
I’m curious whether the DAG builder walks through each directory, detects package.json, and reads its contents to build a node. If so, how is that traversal performed and how are the dependencies extracted?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions