Skip to main content

Module ladder

Module ladder 

Source
Expand description

The runner ladders for tsc and tsx: the tool itself when it is on PATH, then the package manager’s runner (npx, pnpm dlx, bunx) fetching it.

bynk test and bynk check --emit both walk the tsc ladder, so it is written once here. A rung is resolved through detection (crate::probe::detect) when the walk reaches it, and spawned at the path detection found, so a Windows npm shim (tsc.cmd) is also the program that runs (#1758).

Structs§

Ladder
A tool’s ladder over the real PATH, for one package manager.
Rung
One resolved rung of a Ladder.

Functions§

system_tool_ladder
tool_ladder over the real PATH.
tool_ladder
The programs to try, in order, to run tool (a binary of package, which may be pinned): the tool itself, then the runner that fetches it on demand when manager (or npx, for a manager with no runner) is on PATH. Each is a program name with its leading arguments.