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

Optionally focus a semver group on specific dependency types #83

Closed
JamieMason opened this issue Jun 9, 2022 · 1 comment
Closed

Optionally focus a semver group on specific dependency types #83

JamieMason opened this issue Jun 9, 2022 · 1 comment

Comments

@JamieMason
Copy link
Owner

Description

Optionally define the dependency types where a semver group should match.

The existing first-matching-group-wins rules would continue to apply.

Suggested Solution

Scenario: You want exact versions for dependencies which affect production but loose for development.

{
  "semverGroups": [
    {
      "range": "",
      "dependencies": ["**"],
      "packages": ["**"],
      "dependencyTypes": [
        "overrides",
        "pnpmOverrides",
        "prod",
        "resolutions",
        "workspace"
      ]
    },
    {
      "range": "~",
      "dependencies": ["**"],
      "packages": ["**"],
      "dependencyTypes": ["dev"]
    }
  ]
}
@JamieMason
Copy link
Owner Author

This was already done in 565c1e7, just needs documenting.

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

1 participant