https://github.com/hyperdrift-io/peer-dependency-checker
Smart dependency compatibility checker that prevents peer dependency conflicts before you upgrade. Stop breaking builds - check compatibility first!
https://github.com/hyperdrift-io/peer-dependency-checker
automation build-tools ci-cd cli-tool compatibility-checker dependencies dependency-management dev-experience developer-tools devtools hyperdrift javascript next-js nodejs npm package-manager peer-dependencies react typescript upgrade-helper
Last synced: 9 months ago
JSON representation
Smart dependency compatibility checker that prevents peer dependency conflicts before you upgrade. Stop breaking builds - check compatibility first!
- Host: GitHub
- URL: https://github.com/hyperdrift-io/peer-dependency-checker
- Owner: hyperdrift-io
- License: other
- Created: 2025-06-24T20:51:30.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-25T00:17:16.000Z (12 months ago)
- Last Synced: 2025-09-04T06:52:37.486Z (10 months ago)
- Topics: automation, build-tools, ci-cd, cli-tool, compatibility-checker, dependencies, dependency-management, dev-experience, developer-tools, devtools, hyperdrift, javascript, next-js, nodejs, npm, package-manager, peer-dependencies, react, typescript, upgrade-helper
- Language: JavaScript
- Size: 95.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# ๐ peer-dependency-checker
*Smart dependency compatibility checking before you upgrade*
Stop breaking your builds. Check compatibility first.
---
## ๐ Quick Setup
Add peer dependency checking to any project in one command:
```bash
# One command setup - works with npm, yarn, pnpm, or bun
npx peer-dependency-checker setup
# Or install globally first
npm install -g peer-dependency-checker
pdc setup
```
**What this does:**
- โ
Detects your package manager automatically
- โ
Adds pre/post-install hooks to your `package.json`
- โ
Sets up automatic checking on installs
- โ
Works immediately with zero configuration
---
## โก Installation
```bash
# Global install (recommended)
npm install -g peer-dependency-checker
# Or use directly with npx
npx peer-dependency-checker scan
```
## ๐ฏ Usage
```bash
# Analyze your project for upgrade opportunities
pdc scan
# Quick scan with minimal output
pdc scan --quick
# Check specific packages before upgrading
pdc check react@19 react-dom@19
# Deep peer dependency analysis
pdc analyze
# Pre-installation compatibility check
pdc precheck
```
## ๐ Examples
### Project Health Check
```bash
$ pdc scan
๐ Scanning your project...
๐ฆ Project: my-app
๐ง Package Manager: npm
๐ Dependencies: 15 production, 8 development
๐ OUTDATED PACKAGES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
react: 18.3.1 โ 19.1.0
@types/node: 22.15.21 โ 24.0.3
๐ PEER DEPENDENCY STATUS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
No peer dependency warnings detected
๐ก RECOMMENDATIONS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
All packages are up to date!
```
### Test Specific Upgrades
```bash
$ pdc check react@19 react-dom@19
๐งช Testing 2 package(s)...
โ
react@19
โโโ No peer dependencies required
โ
react-dom@19
โโโ Peer deps: { react: '^19.1.0' }
```
## ๐ ๏ธ Commands
| Command | Description |
|---------|-------------|
| `pdc scan` | Analyze current project for upgrade opportunities |
| `pdc scan --quick` | Quick scan with minimal output |
| `pdc check ` | Test specific package upgrades |
| `pdc analyze` | Deep peer dependency analysis |
| `pdc analyze --brief` | Brief analysis with key findings |
| `pdc precheck` | Pre-installation compatibility check |
| `pdc setup` | One-command setup for external projects |
## ๐ง Configuration
Works out-of-the-box with smart defaults. For custom settings, create `.pdcrc.json`:
```json
{
"packageManager": "npm",
"riskTolerance": "medium",
"excludePackages": [],
"outputFormat": "colored"
}
```
๐ **[Configuration Guide โ](./docs/CONFIG.md)**
## ๐ค Contributing
We welcome contributions!
```bash
git clone https://github.com/hyperdrift-io/peer-dependency-checker
cd peer-dependency-checker
npm install
npm test
```
## ๐ License
MIT ยฉ [Hyperdrift](https://hyperdrift.io)
---
**Built with โค๏ธ by the hyperdrift team**