1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-06-03 03:42:18 +08:00
angular-cli/renovate.json
Alan Agius 275fdef350 ci: disable TypeScript patch updates for different major and minor versions.
At the moment, we get patch updates for different major and minor versions than the current version of TypeScript installed.

```json
{
  "packageRules": [
    {
      "packageNames": [
        "typescript"
      ],
      "separateMinorPatch": true
    },
    {
      "packageNames": [
        "typescript"
      ],
      "updateTypes": [
        "minor",
        "major"
      ],
      "enabled": false
    }
  ]
}
```

What the first rule does is override Renovate's results so that if TypeScript has both a minor update as well as a patch update then you get both PRs. Renovate's default otherwise is to just give you the latest minor or squash. So for example if the current TypeScript is `3.4.4` then the default behaviour is just to PR you for `3.5.1`. With this rule, we get both `3.4.5` and `3.5.1`.

The second rule then disables major and minor updates for TypeScript, which has the effect of them suppressing the minor `3.5.1` update.

For more context see: https://github.com/renovatebot/config-help/issues/260
2019-06-06 14:22:56 -07:00

70 lines
1.3 KiB
JSON

{
"pinVersions": false,
"semanticCommits": true,
"semanticPrefix": "build",
"commitMessage": "{{semanticPrefix}} update {{depName}} to version {{newVersion}}",
"separateMajorMinor": false,
"prHourlyLimit": 2,
"labels": [
"PR target: master-only"
],
"timezone": "America/Tijuana",
"schedule": [
"after 10pm every weekday",
"before 4am every weekday",
"every weekend"
],
"baseBranches": [
"master"
],
"ignoreDeps": [
"source-map",
"@types/node",
"webpack-subresource-integrity"
],
"packageFiles": [
"WORKSPACE",
"package.json",
"packages/**/package.json",
"tests/legacy-cli/e2e/ng-snapshot/package.json"
],
"major": {
"devDependencies": {
"enabled": false
}
},
"packageRules": [
{
"packagePatterns": [
"^@angular\/.*"
],
"groupName": "angular",
"pinVersions": false
},
{
"packagePatterns": [
"^@bazel\/.*",
"^build_bazel.*"
],
"groupName": "bazel",
"pinVersions": false
},
{
"packageNames": [
"typescript"
],
"separateMinorPatch": true
},
{
"packageNames": [
"typescript"
],
"updateTypes": [
"minor",
"major"
],
"enabled": false
}
]
}