From 91215af1ba1380c90af64c7b4285b40f990ee39d Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sat, 21 Jul 2018 21:28:38 +0200 Subject: [PATCH] =?UTF-8?q?refactor(js):=20use=20language=20=E2=80=98js?= =?UTF-8?q?=E2=80=99=20for=20npm=20and=20meteor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/config/definitions.js | 8 ++++++++ lib/manager/meteor/index.js | 1 + lib/manager/npm/index.js | 1 + .../repository/updates/__snapshots__/flatten.spec.js.snap | 3 +++ website/docs/configuration-options.md | 4 ++++ 5 files changed, 17 insertions(+) diff --git a/lib/config/definitions.js b/lib/config/definitions.js index 2ec3dbb7e4..e0ab85a21d 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -854,6 +854,14 @@ const options = [ cli: false, env: false, }, + { + name: 'js', + description: 'Configuration object for javascript language', + stage: 'package', + type: 'json', + default: {}, + mergeable: true, + }, { name: 'npm', description: 'Configuration object for npm package.json renovation', diff --git a/lib/manager/meteor/index.js b/lib/manager/meteor/index.js index 75e547b3e9..8a69b16baa 100644 --- a/lib/manager/meteor/index.js +++ b/lib/manager/meteor/index.js @@ -3,5 +3,6 @@ const { updateDependency } = require('./update'); module.exports = { extractDependencies, + language: 'js', updateDependency, }; diff --git a/lib/manager/npm/index.js b/lib/manager/npm/index.js index 79e23f9fdc..3c8a8bf34e 100644 --- a/lib/manager/npm/index.js +++ b/lib/manager/npm/index.js @@ -4,6 +4,7 @@ const { getRangeStrategy } = require('./range'); module.exports = { extractDependencies, + language: 'js', postExtract, getRangeStrategy, updateDependency, diff --git a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap index dd8883cb05..49ecb72149 100644 --- a/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap +++ b/test/workers/repository/updates/__snapshots__/flatten.spec.js.snap @@ -31,6 +31,7 @@ Array [ "groupName": null, "groupSlug": null, "labels": Array [], + "language": "js", "lazyGrouping": true, "manager": "npm", "managerBranchPrefix": "", @@ -89,6 +90,7 @@ Array [ "groupName": null, "groupSlug": null, "labels": Array [], + "language": "js", "lazyGrouping": true, "manager": "npm", "managerBranchPrefix": "", @@ -146,6 +148,7 @@ Array [ "groupName": null, "groupSlug": null, "labels": Array [], + "language": "js", "lazyGrouping": true, "lockFileMaintenance": Object { "branchTopic": "lock-file-maintenance", diff --git a/website/docs/configuration-options.md b/website/docs/configuration-options.md index 8739e891eb..12a309dfcf 100644 --- a/website/docs/configuration-options.md +++ b/website/docs/configuration-options.md @@ -250,6 +250,10 @@ If you wish for Renovate to process only select paths in the repository, use `in If instead you need to just exclude/ignore certain paths then consider `ignorePaths` instead. If you are more interested in including only certain package managers (e.g. `npm`), then consider `enabledManagers` instead. +## js + +Use this configuration option for shared config across npm/yarn/pnpm and meteor package managers. + ## labels Add an array of 1 or more strings to `labels` and Renovate will apply these labels to any PR its created. Usually these will be a per-repository setting like "renovate", or "ready", or "dependencies", however you can configure them right down to per-package level. -- GitLab