@gibme/depupdate
v22.0.0
Published
Easily update package dependencies with a simple quick command
Readme
@gibme/depupdate
Easily update package dependencies with a single command.
depupdate automates the process of upgrading all dependency categories (dependencies, devDependencies, peerDependencies, and optionalDependencies) in a Node.js project, then runs audit checks and attempts to fix any discovered vulnerabilities automatically.
Requirements
- Node.js >= 22
Installation
npm install -g @gibme/depupdateor
yarn global add @gibme/depupdateUsage
Run depupdate from the root of any Node.js project (where package.json lives).
Update Dependencies (within semver range)
depupdateUpdates all dependencies to the latest version permitted by the version ranges in package.json. Automatically detects whether the project uses Yarn (yarn.lock) or npm (package-lock.json).
Update Dependencies (latest)
depupdate latestIgnores existing version ranges and updates every dependency to the absolute latest version.
Setup Standard Dev Dependencies
depupdate setupInstalls a standard set of development dependencies:
@types/node@typescript-eslint/eslint-plugin,@typescript-eslint/parsereslint,eslint-config-standard,eslint-plugin-import,eslint-plugin-n,eslint-plugin-node,eslint-plugin-promisetsxtypedoctypescript
Combine with latest to install the latest versions:
depupdate setup latestAutomatic Audit Fixes
After updating dependencies, depupdate automatically:
- Runs
yarn auditornpm auditto check for known vulnerabilities - If vulnerabilities are found, attempts to fix them (using
npm audit fixoryarn-audit-fix) - Repeats the audit/fix cycle a second time to catch any cascading resolution changes
License
MIT
