renovate 42.72.0 → 42.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,3 @@
1
+ import type { PlatformId } from '../constants';
1
2
  export declare function setUserConfigFileNames(fileNames: string[]): void;
2
- export declare function getConfigFileNames(): string[];
3
+ export declare function getConfigFileNames(platform?: PlatformId): string[];
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setUserConfigFileNames = setUserConfigFileNames;
4
4
  exports.getConfigFileNames = getConfigFileNames;
5
+ const is_1 = require("@sindresorhus/is");
6
+ const regex_1 = require("../util/regex");
5
7
  const configFileNames = [
6
8
  'renovate.json',
7
9
  'renovate.json5',
@@ -18,7 +20,25 @@ let userAddedConfigFileNames = [];
18
20
  function setUserConfigFileNames(fileNames) {
19
21
  userAddedConfigFileNames = fileNames;
20
22
  }
21
- function getConfigFileNames() {
22
- return [...userAddedConfigFileNames, ...configFileNames];
23
+ function getConfigFileNames(platform) {
24
+ let filteredConfigFileNames = [...configFileNames];
25
+ if ((0, is_1.isNonEmptyString)(platform)) {
26
+ const platfromRe = (0, regex_1.regEx)('\\.(?<platform>.*)\\/renovate\\.json[5]?$');
27
+ filteredConfigFileNames = configFileNames.filter((filename) => {
28
+ const matchResult = platfromRe.exec(filename);
29
+ if (!matchResult) {
30
+ return true;
31
+ }
32
+ else if (matchResult?.groups?.platform === platform) {
33
+ return true;
34
+ }
35
+ return false;
36
+ });
37
+ if (!['github', 'gitlab'].includes(platform)) {
38
+ filteredConfigFileNames.push(`.${platform}/renovate.json`);
39
+ filteredConfigFileNames.push(`.${platform}/renovate.json5`);
40
+ }
41
+ }
42
+ return [...userAddedConfigFileNames, ...filteredConfigFileNames];
23
43
  }
24
44
  //# sourceMappingURL=app-strings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../lib/config/app-strings.ts"],"names":[],"mappings":";;AAeA,wDAEC;AAED,gDAEC;AArBD,MAAM,eAAe,GAAG;IACtB,eAAe;IACf,gBAAgB;IAChB,uBAAuB;IACvB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;CACf,CAAC;AAEF,IAAI,wBAAwB,GAAa,EAAE,CAAC;AAE5C,SAAgB,sBAAsB,CAAC,SAAmB;IACxD,wBAAwB,GAAG,SAAS,CAAC;AACvC,CAAC;AAED,SAAgB,kBAAkB;IAChC,OAAO,CAAC,GAAG,wBAAwB,EAAE,GAAG,eAAe,CAAC,CAAC;AAC3D,CAAC","sourcesContent":["const configFileNames = [\n 'renovate.json',\n 'renovate.json5',\n '.github/renovate.json',\n '.github/renovate.json5',\n '.gitlab/renovate.json',\n '.gitlab/renovate.json5',\n '.renovaterc',\n '.renovaterc.json',\n '.renovaterc.json5',\n 'package.json',\n];\n\nlet userAddedConfigFileNames: string[] = [];\n\nexport function setUserConfigFileNames(fileNames: string[]): void {\n userAddedConfigFileNames = fileNames;\n}\n\nexport function getConfigFileNames(): string[] {\n return [...userAddedConfigFileNames, ...configFileNames];\n}\n"]}
1
+ {"version":3,"file":"app-strings.js","sourceRoot":"","sources":["../../lib/config/app-strings.ts"],"names":[],"mappings":";;AAmBA,wDAEC;AAED,gDAsBC;AA7CD,yCAAoD;AAEpD,yCAAsC;AAEtC,MAAM,eAAe,GAAG;IACtB,eAAe;IACf,gBAAgB;IAChB,uBAAuB;IACvB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,aAAa;IACb,kBAAkB;IAClB,mBAAmB;IACnB,cAAc;CACf,CAAC;AAEF,IAAI,wBAAwB,GAAa,EAAE,CAAC;AAE5C,SAAgB,sBAAsB,CAAC,SAAmB;IACxD,wBAAwB,GAAG,SAAS,CAAC;AACvC,CAAC;AAED,SAAgB,kBAAkB,CAAC,QAAqB;IACtD,IAAI,uBAAuB,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC;IAEnD,IAAI,IAAA,qBAAgB,EAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,IAAA,aAAK,EAAC,2CAA2C,CAAC,CAAC;QACtE,uBAAuB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC5D,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC9C,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,OAAO,IAAI,CAAC;YACd,CAAC;iBAAM,IAAI,WAAW,EAAE,MAAM,EAAE,QAAQ,KAAK,QAAQ,EAAE,CAAC;gBACtD,OAAO,IAAI,CAAC;YACd,CAAC;YAED,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC7C,uBAAuB,CAAC,IAAI,CAAC,IAAI,QAAQ,gBAAgB,CAAC,CAAC;YAC3D,uBAAuB,CAAC,IAAI,CAAC,IAAI,QAAQ,iBAAiB,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,wBAAwB,EAAE,GAAG,uBAAuB,CAAC,CAAC;AACnE,CAAC","sourcesContent":["import { isNonEmptyString } from '@sindresorhus/is';\nimport type { PlatformId } from '../constants';\nimport { regEx } from '../util/regex';\n\nconst configFileNames = [\n 'renovate.json',\n 'renovate.json5',\n '.github/renovate.json',\n '.github/renovate.json5',\n '.gitlab/renovate.json',\n '.gitlab/renovate.json5',\n '.renovaterc',\n '.renovaterc.json',\n '.renovaterc.json5',\n 'package.json',\n];\n\nlet userAddedConfigFileNames: string[] = [];\n\nexport function setUserConfigFileNames(fileNames: string[]): void {\n userAddedConfigFileNames = fileNames;\n}\n\nexport function getConfigFileNames(platform?: PlatformId): string[] {\n let filteredConfigFileNames = [...configFileNames];\n\n if (isNonEmptyString(platform)) {\n const platfromRe = regEx('\\\\.(?<platform>.*)\\\\/renovate\\\\.json[5]?$');\n filteredConfigFileNames = configFileNames.filter((filename) => {\n const matchResult = platfromRe.exec(filename);\n if (!matchResult) {\n return true;\n } else if (matchResult?.groups?.platform === platform) {\n return true;\n }\n\n return false;\n });\n\n if (!['github', 'gitlab'].includes(platform)) {\n filteredConfigFileNames.push(`.${platform}/renovate.json`);\n filteredConfigFileNames.push(`.${platform}/renovate.json5`);\n }\n }\n return [...userAddedConfigFileNames, ...filteredConfigFileNames];\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "renovate",
3
3
  "description": "Automated dependency updates. Flexible so you don't need to be.",
4
- "version": "42.72.0",
4
+ "version": "42.73.0",
5
5
  "type": "commonjs",
6
6
  "bin": {
7
7
  "renovate": "dist/renovate.js",
@@ -1,7 +1,7 @@
1
1
  {
2
- "title": "JSON schema for Renovate 42.72.0 config files (https://renovatebot.com/)",
2
+ "title": "JSON schema for Renovate 42.73.0 config files (https://renovatebot.com/)",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
- "x-renovate-version": "42.72.0",
4
+ "x-renovate-version": "42.73.0",
5
5
  "allowComments": true,
6
6
  "type": "object",
7
7
  "properties": {