|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "apollo-open-source" |
| 4 | + ], |
| 5 | + "automerge": false, |
| 6 | + "packageRules": [ |
| 7 | + { |
| 8 | + "packageNames": ["@types/node"], |
| 9 | + "allowedVersions": "8.x" |
| 10 | + }, |
| 11 | + // Currently limited because of a bug in Lerna 3.14.0, as reported in: |
| 12 | + // https://github.com/lerna/lerna/issues/2107. Note this can now be |
| 13 | + // reverted, since it's resolved, but I'll reserve that for a follow-up |
| 14 | + // commit. |
| 15 | + { |
| 16 | + "packageNames": ["lerna"], |
| 17 | + "allowedVersions": "=3.13.4" |
| 18 | + }, |
| 19 | + /* |
| 20 | + Avoid major version bumps to server frameworks (those used by the |
| 21 | + various Apollo Server integrations (e.g. Fastify, Express, Koa, etc.), |
| 22 | + which must be reserved for a major version bump to Apollo Server itself. |
| 23 | +
|
| 24 | + For more thoughts here, see my comment on the commits that introduced |
| 25 | + these threshholds via `git blame`. |
| 26 | + */ |
| 27 | + { |
| 28 | + "packageNames": ["fastify", "fastify-cors"], |
| 29 | + "allowedVersions": "<2" |
| 30 | + }, |
| 31 | + { |
| 32 | + "packageNames": ["koa-bodyparser"], |
| 33 | + "allowedVersions": "<4" |
| 34 | + }, |
| 35 | + { |
| 36 | + "packageNames": ["@koa/cors"], |
| 37 | + "allowedVersions": "<3" |
| 38 | + }, |
| 39 | + { |
| 40 | + "packageNames": ["ws"], |
| 41 | + "allowedVersions": "<7" |
| 42 | + }, |
| 43 | + /* |
| 44 | + Docs-related Renovate rules |
| 45 | +
|
| 46 | + These ensure that the `docs/` folder, which is its own application with |
| 47 | + its own dependencies which lives inside this repository, plays by its |
| 48 | + own Renovate rules. Those rules are defined within the external (npm) |
| 49 | + package called `renovate-config-apolllo-docs` (defined here only by |
| 50 | + the `apollo-docs` suffix). |
| 51 | + */ |
| 52 | + { |
| 53 | + "paths": [ |
| 54 | + "docs/package.json" |
| 55 | + ], |
| 56 | + "extends": [ |
| 57 | + "apollo-docs" |
| 58 | + ], |
| 59 | + // We need to tell Renovate to check the branches for each major version |
| 60 | + // of Apollo Server. "Past" major versions should be added here! |
| 61 | + "baseBranches": [ |
| 62 | + "master", |
| 63 | + "version-2" |
| 64 | + ] |
| 65 | + } |
| 66 | + ] |
| 67 | +} |
0 commit comments