Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-dependency-version-consistency

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-dependency-version-consistency

Ensures dependencies are on consistent versions across a monorepo.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
83K
decreased by-21.05%
Maintainers
1
Weekly downloads
 
Created
Source

check-dependency-version-consistency

npm version CI

This plugin checks to ensure that dependencies are on consistent versions across a monorepo / yarn workspace. For example, every package in a workspace that has a dependency on eslint should specify the same version for it.

Usage

To install:

yarn add --dev check-dependency-version-consistency

To run, pass the path to the workspace root:

yarn check-dependency-version-consistency .

This can be incorporated as one of your package.json lint scripts like this:

"lint": "npm-run-all --continue-on-error --aggregate-output --parallel lint:*",
"lint:dependency-versions": "check-dependency-version-consistency ."
"lint:js": "eslint . --cache",

If there are no dependency mismatches, the program will exit with success.

If there are any dependency mismatches, the program will exit with failure and output the mismatching versions:

eslint has more than one version: ^7.0.0 (1 usage), ^7.1.0 (5 usages)
sinon has more than one version: ^1.17.7 (1 usage), ^9.0.3 (3 usages)

Options

NameDescription
--ignore-depDependency to ignore mismatches for (option can be repeated).

Keywords

FAQs

Package last updated on 31 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc