Created
June 27, 2024 01:24
-
-
Save dctalbot/98696af775cfb6e5d09b1653834bd0a1 to your computer and use it in GitHub Desktop.
upgrade all npm packages that contain a string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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