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.
- See repos.ts
- Clone the repo.
- Run
yarn install
to install the dependencies. - Create a Github Personal Access Token with
repo
permissions. - Create a
.envrc
file, and set
export GITHUB_TOKEN="<YOUR PERSONAL ACCESS TOKEN HERE>"
- If you use direnv type
direnv allow .
to add this environment variable to your shell. Otherwise typesource .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/*"