A small node script to check dependency versions with yarn across multiple repos
This is a CLI to check which version (or versions!) of a package are installed in various repos.
It uses the yarn.lock
file in the repo as a source of truth.
yarn install
to install the dependencies.repo
permissions..envrc
file, and setexport GITHUB_TOKEN="<YOUR PERSONAL ACCESS TOKEN HERE>"
direnv allow .
to add this environment variable to your shell.source .envrc
yarn list-versions <package-name>
yarn list-versions react
yarn list-versions react react-dom
yarn list-versions @kaizen/component-library
yarn list-versions "@kaizen/*"
yarn list-versions "@kaizen/*" "@cultureamp/*"