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

question: Is there a way to handle patch: versions in the resolutions field? #254

Open
1 task done
dancrumb opened this issue Dec 21, 2024 · 1 comment
Open
1 task done

Comments

@dancrumb
Copy link

Question

Yarn 4 supports patch: versions. An example might be:

    "[email protected]": "patch:react-native-markdown-display@npm%3A7.0.0-alpha.2#./.yarn/patches/react-native-markdown-display-npm-7.0.0-alpha.2-c4bafd0409.patch"

This results in this error:

✘ name [email protected] or version patch:react-native-markdown-display@npm%3A7.0.0-alpha.2#./.yarn/patches/react-native-markdown-display-npm-7.0.0-alpha.2-c4bafd0409.patch are not supported package.json > resolutions [UnsupportedMismatch]

I can't quite figure out how to tell syncpack to ignore that. Until I can do that, I can't use syncpack lint in my CI pipeline.

Is there a way to do this?

Code of Conduct

@JamieMason
Copy link
Owner

A quick reply but a brief one I'm afraid as I'm replying from mobile, try ignoring unsupported specified types.

It would be something like

{
  "versionGroups": [
    {
      "specifierTypes": ["unsupported"],
      "isIgnored": true
    }
  ]
}

Hopefully this sets you in the right direction, thanks for trying syncpack

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