forked from apollographql/apollo-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
renovate.json5
80 lines (79 loc) · 2.83 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"extends": [
"apollo-open-source",
"group:graphqlcodegeneratorMonorepo",
"group:graphql-toolsMonorepo",
],
"schedule": null,
// Disable circleci manager; see apollographql/federation's renovate file for details.
"enabledManagers": ["npm"],
"dependencyDashboard": true,
"packageRules": [
// Bunch up all non-major dependencies into a single PR. In the common case
// where the upgrades apply cleanly, this causes less noise and is resolved faster
// than starting a bunch of upgrades in parallel for what may turn out to be
// a suite of related packages all released at once. (This is above the docs sections
// so that the docs groupNames defined in renovate-config-apollo-docs take precedence.)
{
"groupName": "all non-major dependencies",
"matchUpdateTypes": ["patch", "minor"],
"groupSlug": "all-minor-patch",
},
{
"matchPackageNames": ["@types/node"],
"allowedVersions": "12.x"
},
// make-fetch-happen is used by the op reg plugin, which uses a cache API
// that is removed in v9.
{
"matchPackageNames": ["make-fetch-happen"],
"allowedVersions": "8.x"
},
// node-fetch v3 only ships as ESM. We currently build to CommonJS and even
// if we start publishing as ESM (#5627) we're not going to go ESM-only
// for a while. (Plus it requires Node v12.20 and we technically support
// v12.0.) So let's stay on v2. (Perhaps we could swap to undici instead
// if this pin gets to be a problem.)
{
"matchPackageNames": ["node-fetch", "@types/node-fetch"],
"allowedVersions": "2.x"
},
/*
Docs-related Renovate rules
These ensure that the `docs/` folder, which is its own application with
its own dependencies which lives inside this repository, plays by its
own Renovate rules. Those rules are defined within the external (npm)
package called `renovate-config-apollo-docs` (defined here only by
the `apollo-docs` suffix).
*/
{
"matchPaths": [
"docs/package.json"
],
"extends": [
"apollo-docs"
],
// We need to tell Renovate to check the branches for each major version
// of Apollo Server. "Past" major versions should be added here!
"baseBranches": [
"main",
"version-2"
],
},
// The current Apollo Gatsby theme does not support a version of Gatsby
// that supports React 17.
{
"matchPaths": [
"docs/package.json"
],
"matchPackageNames": ["react", "react-dom"],
"allowedVersions": "16.x",
},
{
matchPackagePatterns: [""],
// Override this value set in apollo-open-source and apollo-docs back to the default.
// It's nice to be able to see PRs for everything in the Dependency Dashboard.
prCreation: "immediate",
},
]
}