PNPM update all NPM dependencies to latest version
I used to have a simple bash script that I ran on Javascript projects to update all the NPM dependencies to the latest version:
alias npmup="npx npm-check-updates -u && npm i"But now that I'm slowly switching to pnpm I wanted an equivalent, and luckily pnpm has this functionality out of the box with the up command.
Here's how I have it now:
alias npmup="pnpm up --latest && pnpm install"