Skip to content

Commit

Permalink
docs: matchFileNames negative match
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 12, 2023
1 parent ac826c2 commit 2092254
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/usage/configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,7 @@ Use the syntax `!/ /` like this:

### matchFileNames

Renovate will compare `matchFileNames` glob matching against the dependency's package file or lock file.
Renovate will compare `matchFileNames` glob matching against the dependency's package file and also lock file if one exists.

The following example matches `package.json` but _not_ `package/frontend/package.json`:

Expand Down Expand Up @@ -2262,6 +2262,8 @@ The following example matches any file in directories starting with `app/`:
}
```

It is recommended that you avoid using "negative" globs, like `**/!(package.json)`, because such patterns might still return true if they match against the lock file name (e.g. `package-lock.json`).

### matchDepNames

### matchDepPatterns
Expand Down

0 comments on commit 2092254

Please sign in to comment.