From 9cceffddf944c08d57108d207c598e4d320e6ab8 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 22 Feb 2020 16:31:01 +0100 Subject: [PATCH] fix: deprecate/migrate `engines` config --- docs/usage/configuration-options.md | 4 ---- lib/config/definitions.ts | 9 --------- lib/config/migration.ts | 1 + 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index db869706d5..e8b6f770fc 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -350,10 +350,6 @@ Example: See [Private npm module support](https://docs.renovatebot.com/private-modules) for details on how this is used to encrypt npm tokens. -## engines - -Extend this if you wish to configure rules specifically for `engines` definitions. Renovate extracts and updates `node`, `npm` and `yarn` fields within. - ## excludeCommitPaths Warning: Advanced use! diff --git a/lib/config/definitions.ts b/lib/config/definitions.ts index ff4dd29577..4dc9d6d9db 100644 --- a/lib/config/definitions.ts +++ b/lib/config/definitions.ts @@ -600,15 +600,6 @@ const options: RenovateOptions[] = [ subType: 'string', default: [], }, - { - name: 'engines', - description: 'Configuration specifically for `package.json`>`engines`', - stage: 'package', - type: 'object', - default: {}, - mergeable: true, - cli: false, - }, { name: 'aliases', description: 'Aliases for registries, package manager specific', diff --git a/lib/config/migration.ts b/lib/config/migration.ts index da3affa5e4..19db6a8539 100644 --- a/lib/config/migration.ts +++ b/lib/config/migration.ts @@ -46,6 +46,7 @@ export function migrateConfig( const depTypes = [ 'dependencies', 'devDependencies', + 'engines', 'optionalDependencies', 'peerDependencies', ]; -- GitLab