syncpack
syncpack copied to clipboard
pnpm overrides: Fix overriding dependency of specific package
Description
Ref: https://pnpm.io/package_json#pnpmoverrides
You may specify the package the overriden dependency belongs to by separating the package selector from the dependency selector with a ">", for example qar@1>zoo will only override the zoo dependency of qar@1, not for any other dependencies.
We currently override a dependency of a specific package using pnpm.overrides
.
In our syncpack config, we require exact dependency versions with this config:
When we run syncpack lint
, we get the following error:
Suggested Solution
It seems like maybe syncpack doesn't understand this format yet? The current workaround we have is: