Last active
April 10, 2019 19:47
-
-
Save jaronheard/51d879bc61cc19b5bb37a219703859c2 to your computer and use it in GitHub Desktop.
List all dependencies for all packages in a lerna monorepo, by package name - one line bash script
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
lerna exec --stream -- 'lernaprefix=$LERNA_PACKAGE_NAME; echo $lernaprefix && yarn run env | grep "npm_package_devDependencies\|npm_package_dependencies\|npm_package_peerDependencies" | { while read line; do echo "$lernaprefix: $line"; done } >> ~/dependenciesLog' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment