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

feat(version): try to support the query language within pnpm.overrides #231

Open
mlahargou opened this issue Jul 9, 2024 · 1 comment
Open

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

@JamieMason
Copy link
Owner

Hey @mlahargou, slow reply here but that's exactly right – work is needed to understand and resolve the clever > syntax inside the name. It'll be possible but will take some time as it's pretty involved.

@JamieMason JamieMason changed the title pnpm overrides: Fix overriding dependency of specific package feat(version): try to support the query language within pnpm.overrides Feb 10, 2025
@ardelato ardelato marked this as a duplicate of #268 Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants