Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm overrides: Fix overriding dependency of specific package #231

Open
mlahargou opened this issue Jul 9, 2024 · 0 comments
Open

pnpm overrides: Fix overriding dependency of specific package #231

mlahargou opened this issue Jul 9, 2024 · 0 comments

Comments

@mlahargou
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant