mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-19 12:28:44 -05:00
* chore(scripts): typecheck-only * feat: change all configuration * feat: include pnpm/ and pnpm/test/ * chore(deps): remove unused dependency * refactor(typescript-only): use find-packages * refactor(typescript-only): refactor paths * fix: typescript-only * fix: update compile-only * fix: compile pnpm * fix: windows * fix: windows * chore: meta-updater * refactor(tsconfig): remove explicit composite * fix: path in windows * feat: don't depend on cwd --------- 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]],
}
)