Created
August 4, 2015 03:54
-
-
Save chfritz/63dbf792d22563e5d0c0 to your computer and use it in GitHub Desktop.
A script for checking the two-step package dependencies of a meteor project, i.e., the package dependencies of direct dependencies (as seen in `meteor list`).
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
meteor list | grep ^[a-z] | tr -s ' ' | cut -d ' ' -f1,2 | tr -d '\*\+' | tr ':' '_' \ | |
| while read X Y; do \ | |
cat ~/.meteor/packages/$X/$Y/web.browser.json \ | |
| xargs -0 node -e "X = JSON.parse(process.argv[1]); \ | |
X.uses.forEach(function(d) { \ | |
console.log(\"$X\", \"$Y\", d.package, d.constraint); \ | |
})"; \ | |
done | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similarly, to just check which package is mentioning a certain dependency, e.g., jquery: