Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function sequenceResolver(configs: Module[]) {
const sort = new TopologicalSort();
for (const config of configs) {
sort.add(config, {
group: config.moduleID,
after: config.sequence,
});
}
return sort.nodes as string[];
}