Requirements
Rev-dep requires Node.js 18 or higher. Check your Node version:If you need to upgrade Node.js, visit nodejs.org or use a version manager like nvm.
Local Installation (Recommended)
Installing Rev-dep as a dev dependency allows you to:- Set up project-specific check scripts
- Share configuration across your team
- Version lock the tool with your project
- Run checks in CI/CD pipelines
npx:
Quick Start After Local Install
Create a configuration file to get started quickly:Initialize configuration
The
config init command creates a rev-dep.config.json file with sensible defaults:- In monorepo root: Creates a root rule and a rule for each workspace package
- In single package: Creates a single rule with
path: "."for the current directory
Add to package.json scripts
Add Rev-dep commands to your
package.json for easy execution:package.json
Global Installation
Installing Rev-dep globally provides a CLI tool available anywhere on your system. This is useful for:- Ad-hoc analysis across different projects
- Exploratory commands without project setup
- Quick dependency investigations
Verification
Verify your installation by checking the version:Platform-Specific Notes
Linux
Rev-dep includes platform-specific binaries for Linux x64. Installation should work out of the box on most distributions.macOS
Rev-dep includes platform-specific binaries for macOS (both Intel and Apple Silicon). On first run, you may need to grant permission in System Preferences if macOS blocks the binary.Windows
Rev-dep includes platform-specific binaries for Windows x64. Windows Defender or antivirus software may scan the binary on first run.TypeScript Projects
Rev-dep automatically detects and uses yourtsconfig.json for path alias resolution. No additional configuration needed!
The tool looks for tsconfig.json in:
- Current working directory
- Parent directories (walking up the tree)
Monorepo Projects
Rev-dep has first-class support for monorepos. It automatically detects:- pnpm workspaces via
pnpm-workspace.yaml - npm/Yarn workspaces via
package.jsonworkspaces field
Next Steps
Now that you’ve installed Rev-dep, learn how to use it:Quick Start
Run your first checks and explore CLI commands
Configuration
Set up advanced config-based governance
