mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-17 13:20:12 -04:00
* fix: forward existing `$NODE_OPTIONS` when running jest * chore: update `package.json` files for meta-updater changes --------- Co-authored-by: Zoltan Kochan <z@kochan.io>
@pnpm/deps.graph-sequencer
Sort items in a graph using a topological sort
Install
pnpm add @pnpm/deps.graph-sequencer
Usage
expect(graphSequencer(new Map([
[0, [1]],
[1, [2]],
[2, [3]],
[3, [0]],
]), [0, 1, 2, 3])).toStrictEqual(
{
safe: false,
chunks: [[0, 1, 2, 3]],
cycles: [[0, 1, 2, 3]],
}
)