syncpack icon indicating copy to clipboard operation
syncpack copied to clipboard

pnpm overrides: Fix overriding dependency of specific package

Open mlahargou opened this issue 7 months ago • 0 comments

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.

image

In our syncpack config, we require exact dependency versions with this config:

image

When we run syncpack lint, we get the following error:

image

Suggested Solution

It seems like maybe syncpack doesn't understand this format yet? The current workaround we have is:

image

mlahargou avatar Jul 09 '24 18:07 mlahargou