From 50acfff1ba8e616debf5a2f7976a3ea57a5214db Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 24 Aug 2018 17:08:32 +0200 Subject: [PATCH] fix: packageRules.paths definition --- lib/config/definitions.js | 19 ++++++++++--------- website/docs/configuration-options.md | 4 ++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/config/definitions.js b/lib/config/definitions.js index eff277f3eb..b98d0a1075 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -309,15 +309,6 @@ const options = [ stage: 'repository', default: ['**/node_modules/**', '**/bower_components/**'], }, - { - name: 'paths', - description: - 'List of strings or glob patterns to match against package files. Applicable inside packageRules only', - type: 'list', - stage: 'repository', - cli: false, - env: false, - }, { name: 'engines', description: 'Configuration specifically for `package.json`>`engines`', @@ -437,6 +428,16 @@ const options = [ cli: false, env: false, }, + { + name: 'paths', + description: + 'List of strings or glob patterns to match against package files. Applicable inside packageRules only', + type: 'list', + stage: 'repository', + parent: 'packageRules', + cli: false, + env: false, + }, // Version behaviour { name: 'allowedVersions', diff --git a/website/docs/configuration-options.md b/website/docs/configuration-options.md index 869d2d592b..d05ed49088 100644 --- a/website/docs/configuration-options.md +++ b/website/docs/configuration-options.md @@ -508,6 +508,8 @@ Use this field if you want to have one or more package names patterns in your pa The above will set `rangeStrategy` to `replace` for any package starting with `angular`. +### paths + ### updateTypes Use this field to match rules against types of updates. For example to apply a special label for Major updates: @@ -523,8 +525,6 @@ Use this field to match rules against types of updates. For example to apply a s Add to this object if you wish to define rules that apply only to patch updates. See also `major` and `minor` configuration options. -## paths - ## php Warning: PHP Composer support is in alpha stage so you probably only want to run this if you are helping get it feature-ready. -- GitLab