Skip to content

Instantly share code, notes, and snippets.

@dctalbot
Created June 27, 2024 01:24
Show Gist options
  • Save dctalbot/98696af775cfb6e5d09b1653834bd0a1 to your computer and use it in GitHub Desktop.
Save dctalbot/98696af775cfb6e5d09b1653834bd0a1 to your computer and use it in GitHub Desktop.
upgrade all npm packages that contain a string
yarn add $$(cat package.json | node -pe "Object.keys(JSON.parse(require('fs').readFileSync('/dev/stdin').toString()).devDependencies)" | grep some-string | cut -d"'" -f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment