Skip to content

dependencies/syncpack

Checks that every workspace package resolves each dependency to one version.

Part of the dependencies configuration, at the all level. It runs at the push stage, once for the repository. It runs syncpack.

Two versions of a dependency in one workspace behave differently, so a bug shows in only one package.

Set every package.json to the same version of the dependency, then update the lockfile.

Two package.json files that pin different versions of one dependency report a mismatch. Set both to the same version, and update the lockfile.

Turn it off for some files, or one of its lint rules, with a reason:

gspot ignore dependencies/syncpack --paths "<glob>" --reason "<why>"
gspot ignore dependencies/syncpack --rule <rule> --reason "<why>"