How to update only dev dependencies in Renovate for Composer?

136 views Asked by At

How to configure Renovate tool to update only development dependencies for the Composer package manager?

1

There are 1 answers

0
JSowa On

You need to configure Renovate to ignore (disable) all the regular dependencies using the directive matchDepTypes. Example below:


"packageRules": [
    {
        "groupName": "regular-dependencies",
        "matchManagers": ["composer"],
        "matchDepTypes": ["require"],
        "enabled": false
    },


If you want to update only regular dependencies you need to change the "matchDepTypes" to ["require-dev"].