Created
February 20, 2025 11:48
-
-
Save oscarteg/3c4bb767de032736b9cf4a5a265f4818 to your computer and use it in GitHub Desktop.
This oneliner finds all the package.json and shows the duplicate dependencies
This file contains hidden or 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
| fd package.json -x jq -r '"\(.dependencies + .devDependencies | to_entries | .[] | "\(.key)@\(.value)")"' {} | sort | uniq -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment