Wireit is a productivity tool for npm scripts that adds smart caching, concurrency control, and dependency awareness without replacing your package manager. It wraps ordinary npm run commands with a declarative configuration describing inputs, outputs, and script relationships, then skips work when nothing has changed. Wireit can watch files, detect invalidated outputs, and propagate rebuilds through a graph of scripts, improving feedback loops in monorepos and complex apps. It persists caches between runs and across CI so identical steps don’t redo expensive tasks like bundling or type-checking. The system also serializes or parallelizes scripts based on dependencies to avoid race conditions while maximizing throughput. Because it integrates at the script layer, it works with any underlying tool—TypeScript, Rollup, Jest, or bespoke commands—while remaining transparent to developers.
Features
- Declarative inputs/outputs to enable deterministic caching
- Incremental rebuilds with file watching and invalidation
- Cross-run and CI cache reuse for faster pipelines
- Script dependency graphs with safe concurrency
- Drop-in enhancement for existing npm scripts
- Tool-agnostic integration for compilers, bundlers, and tests