dependency-version-checker

A small node script to check dependency versions with yarn across multiple repos

Stars
1
Committers
2

Dependency Version Checker

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.

Which repos does this check?

Setup

  1. Clone the repo.
  2. Run yarn install to install the dependencies.
  3. Create a Github Personal Access Token with repo permissions.
  4. Create a .envrc file, and set
export GITHUB_TOKEN="<YOUR PERSONAL ACCESS TOKEN HERE>"
  1. If you use direnv type direnv allow . to add this environment variable to your shell.
    Otherwise type source .envrc

Usage

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/*"