When running beats downloading
When running beats downloading
If a download would take longer than running the task, vx runs the task. 500 remote hits finish in 1.15 s instead of 3.12 s.
A task can have inputs and no command. Tests that depend on it run again when those files change, and nothing extra spawns.
Test fixtures change, but no command builds them. Give them a task with
inputs and no command, and test runs again when a fixture changes.
import { defineProject } from '@vzn/vx/config'
export default defineProject({ tasks: { fixtures: { inputs: { files: ['fixtures/**'] } }, test: { exec: { command: 'bun test' }, dependsOn: ['fixtures'], inputs: { files: ['src/**'] }, outputs: { files: [] }, cache: true, }, },})$ vx run packages/b#test tasks 1 success · 1 total cache local 1✓
$ echo '{"user":"grace"}' > fixtures/user.json$ vx run packages/b#test tasks 1 success · 1 total cache local 1↑
$ echo "# readme" > README.md$ vx run packages/b#test tasks 1 success · 1 total cache local 1✓A fixture edit runs test again (1↑: ran and saved). A README edit
is a cache hit. It says 1 total because fixtures started no process.
Linux x64 · vx 69617eb · 2026-10-23
flowchart LR F["fixtures/**"] --> G["fixtures<br/>inputs, no command"] G -->|its key| T["test"] S["src/**"] --> T R["README.md"] -.->|not an input| T
We call this a keyed group: inputs with no exec. It takes no
cache, because it writes nothing. --affected follows it like any
other dependency.
Nx keys a task on its dependencies’ production files even with no task
edge between them. Turbo hashes a transit node per package.
@vzn/vx-migrate writes each as a keyed group, with no processes.
On TanStack/query, vx run build counts 25 tasks, as Nx does.
More at vznjs.github.io/vx.