How To Update Only Some Dependencies Using Renovate App

Configure Renovate too only check updates for some dependencies and not all of them.

I have a common situation - in an example repo like https://github.com/cypress-io/netlify-plugin-cypress-example we have lots of dependencies, but we are interested only in keeping our Cypress dependencies up to date. In this blog post I will show how to disable all package dependencies and then whitelist just a few ones to be checked.

I have set up repository bahmutov/renovate-update-single-module-example to show this in action. There are 2 dependencies: debug and chalk, but I am only interested in keeping debug up-to-date. Here is the full renovate.json file

renovate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"extends": [
"config:base"
],
"enabledManagers": ["npm"],
"packageRules": [
{
"packagePatterns": ["*"],
"excludePackagePatterns": ["debug"],
"enabled": false
}
]
}

Thus we disable all package updates, except debug using excludePackagePatterns option, found in Renovate Docs.

If we go to Renovate Dashboard (access is private to the owner of the Renovate app) we can see our check jobs.

Renovate Dashboard

Click on any build, and in the DEBUG logs you can search for a module and see if it was disabled.

Disabled chalk module

Read more