| name | up-deps |
| description | Update project dependencies using taze, a modern CLI tool that keeps deps fresh. Supports monorepos, version range updates, and automatic installation. Use when updating dependencies, upgrading packages, or keeping packages up-to-date. |
Update Dependencies Workflow
Complete workflow for updating project dependencies using taze, a modern CLI tool that keeps your dependencies fresh.
Quick Start
By default, taze safely updates versions within the ranges specified in package.json (same behavior as npm install).
npx taze
For monorepos, use recursive mode:
npx taze -r
Update Levels
Safe Updates (Default)
Only bump versions within allowed ranges:
npx taze
Major Updates
Check and bump to latest stable versions including major (breaking) changes:
npx taze major
Minor Updates
Bump to latest minor versions within the same major version:
npx taze minor
Patch Updates
Bump to latest patch versions within the same minor version:
npx taze patch
Workflow Steps
1. Check Current Dependencies
ls package.json
find . -name "package.json" -not -path "*/node_modules/*"
2. Run Taze
Basic usage:
npx taze
With options:
npx taze -r
npx taze --write
npx taze --write --install
npx taze --peer
npx taze --include-locked
npx taze -l
npx taze --force
3. Review Changes
After running taze, review the proposed changes by checking the output. If --write was used, review the updated package.json files:
cat package.json
find . -name "package.json" -not -path "*/node_modules/*" -exec cat {} \;
Check for:
- Breaking changes in major updates
- Compatibility issues
4. Install Updated Dependencies
If --install wasn't used, install manually using @antfu/ni which automatically detects the package manager:
npx @antfu/ni
@antfu/ni automatically detects the package manager from package.json packageManager field or lock files (pnpm-lock.yaml, yarn.lock, etc.) and uses the appropriate command.
Advanced Configuration
Filter Packages
Include or exclude specific packages:
npx taze --include lodash,webpack
npx taze --exclude react-dom
npx taze --include /react/ --exclude react-dom
Config File (Reference Only)
Note: Do not create taze.config.ts or taze.config.js automatically. Only use if the project already has one.
If a taze.config.ts or taze.config.js file exists in the project, it will be used for configuration.
For a complete example configuration, see references/taze.config.ts.
Important: Use command-line options instead of creating config files. Only reference existing config files if they are already present in the project.
Monorepo Support
Taze has first-class monorepo support:
npx taze -r
Monorepo workflow:
- Run
npx taze -r to scan all packages
- Review taze output to see proposed changes
- Install dependencies at root level (or in each workspace)
Complete Example
Scenario: Updating dependencies in a monorepo with safe updates
find . -name "package.json" -not -path "*/node_modules/*"
npx taze -r
npx taze -r --write --install
Scenario: Major version updates for specific packages
npx taze major --include typescript
npx taze major --include typescript --write
cat package.json | grep typescript
npx @antfu/ni
Important Notes
- Safe by default: Taze only updates within version ranges unless explicitly told otherwise
- Locked versions: Fixed versions (without
^ or ~) are skipped by default
- Peer dependencies: Not included by default, use
--peer flag
- Monorepos: Use
-r flag for recursive scanning
- No installation required: Use
npx taze without installing globally
- Breaking changes: Always review major updates carefully
Error Handling
If taze fails:
- Check network connectivity
- Verify package.json syntax
- Try with
--force to bypass cache
- Check for conflicting version ranges
If installation fails:
- Clear lock file and node_modules
- Try with different package manager
- Check for peer dependency conflicts
- Review package.json for syntax errors