sortEntriesByDeps
sortEntriesByDeps(
entries,fileProvider):Promise<SortResult>
Defined in: workspace/sort.ts:50
Sort workspace entries by their dependencies
Performs topological sort using Kahn’s algorithm. Entries without dependencies come first.
Parameters
Section titled “Parameters”entries
Section titled “entries”object[]
Array of entry configurations
fileProvider
Section titled “fileProvider”File provider for reading configs
Returns
Section titled “Returns”Promise<SortResult>
Sorted entries with dependencies first, plus any errors
Example
Section titled “Example”const sorted = await sortEntriesByDeps([ { entry: '/spec/core/index.html' }, // depends on overview { entry: '/spec/overview/index.html' }, // no deps], fileProvider);
// Result: overview comes first, then core