crates/turborepo-engine/README.md
Task graph construction and execution orchestration. Builds the dependency graph of tasks and coordinates their parallel execution.
turbo.json + package graph
└── EngineBuilder
└── Task Graph (petgraph)
├── Nodes: tasks (package#task)
├── Edges: dependencies
└── Parallel execution via topological traversal
Key components:
EngineBuilder - Constructs task graph from configurationTurboJsonLoader - Loads and merges turbo.json filesOutputs:
The engine is the core orchestrator for turbo run. It resolves task dependencies across packages, validates the graph, and drives parallel execution while respecting dependency ordering.