Skip to content

Commit 56fe16e

Browse files
chore(config): migrate renovate config (#3929)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
1 parent ca7f90b commit 56fe16e

File tree

1 file changed

+78
-81
lines changed

1 file changed

+78
-81
lines changed

.github/renovate.json5

+78-81
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,80 @@
11
{
2-
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:recommended", "schedule:weekly"],
4-
"ignorePaths": ["**/tests/**", "**/node_modules/**"],
5-
"packageRules": [
6-
// Use chore as semantic commit type for commit messages
7-
{
8-
"matchPackagePatterns": ["*"],
9-
"semanticCommitType": "chore",
10-
// always bump package.json
11-
"rangeStrategy": "bump"
12-
},
13-
{
14-
"groupName": "babel",
15-
"packagePatterns": ["babel"],
16-
"groupSlug": "babel"
17-
},
18-
{
19-
"groupName": "rspack",
20-
"packagePatterns": ["rspack"],
21-
"groupSlug": "rspack"
22-
},
23-
{
24-
"groupName": "rspress",
25-
"packagePatterns": ["rspress"],
26-
"groupSlug": "rspress"
27-
},
28-
{
29-
"groupName": "rslib",
30-
"packagePatterns": ["rslib"],
31-
"groupSlug": "rslib"
32-
},
33-
{
34-
"groupName": "modern-js",
35-
"packagePatterns": ["modern-js"],
36-
"groupSlug": "modern-js"
37-
},
38-
{
39-
"groupName": "eslint",
40-
"packagePatterns": ["eslint"],
41-
"groupSlug": "eslint"
42-
},
43-
{
44-
"groupName": "types",
45-
"packagePatterns": ["^@types/"],
46-
"groupSlug": "types"
47-
},
48-
{
49-
"groupName": "all patch dependencies",
50-
"groupSlug": "all-patch",
51-
"matchPackagePatterns": ["*"],
52-
"matchUpdateTypes": ["patch"]
53-
},
54-
// manually update peer dependencies
55-
{
56-
"depTypeList": ["peerDependencies"],
57-
"enabled": false
58-
}
59-
],
60-
"ignoreDeps": [
61-
// manually update
62-
"pnpm",
63-
// some loaders still depend on loader-utils v2
64-
"loader-utils",
65-
// pure esm packages can not be used now
66-
"open",
67-
"strip-ansi",
68-
"ansi-escapes",
69-
"cli-truncate",
70-
"patch-console",
71-
// align Node.js version minimum requirements
72-
"@types/node",
73-
"node",
74-
// does not follow semver
75-
"babel-plugin-react-compiler",
76-
// require Node 18
77-
"copy-webpack-plugin",
78-
// major version contains breaking changes
79-
"chokidar",
80-
"style-loader",
81-
"http-proxy-middleware"
82-
]
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['config:recommended', 'schedule:weekly'],
4+
ignorePaths: ['**/tests/**', '**/node_modules/**'],
5+
packageRules: [
6+
// Use chore as semantic commit type for commit messages
7+
{
8+
semanticCommitType: 'chore',
9+
// always bump package.json
10+
rangeStrategy: 'bump',
11+
matchPackageNames: ['*'],
12+
},
13+
{
14+
groupName: 'babel',
15+
groupSlug: 'babel',
16+
matchPackageNames: ['/babel/'],
17+
},
18+
{
19+
groupName: 'rspack',
20+
groupSlug: 'rspack',
21+
matchPackageNames: ['/rspack/'],
22+
},
23+
{
24+
groupName: 'rspress',
25+
groupSlug: 'rspress',
26+
matchPackageNames: ['/rspress/'],
27+
},
28+
{
29+
groupName: 'rslib',
30+
groupSlug: 'rslib',
31+
matchPackageNames: ['/rslib/'],
32+
},
33+
{
34+
groupName: 'modern-js',
35+
groupSlug: 'modern-js',
36+
matchPackageNames: ['/modern-js/'],
37+
},
38+
{
39+
groupName: 'eslint',
40+
groupSlug: 'eslint',
41+
matchPackageNames: ['/eslint/'],
42+
},
43+
{
44+
groupName: 'types',
45+
groupSlug: 'types',
46+
matchPackageNames: ['/^@types//'],
47+
},
48+
{
49+
groupName: 'all patch dependencies',
50+
groupSlug: 'all-patch',
51+
matchUpdateTypes: ['patch'],
52+
matchPackageNames: ['*'],
53+
},
54+
// manually update peer dependencies
55+
{
56+
matchDepTypes: ['peerDependencies'],
57+
enabled: false,
58+
},
59+
],
60+
ignoreDeps: [
61+
'pnpm',
62+
// some loaders still depend on loader-utils v2
63+
'loader-utils',
64+
// pure ESM packages can not be used now
65+
'open',
66+
'strip-ansi',
67+
'ansi-escapes',
68+
'cli-truncate',
69+
'patch-console',
70+
'node',
71+
// does not follow semver
72+
'babel-plugin-react-compiler',
73+
// require Node 18
74+
'copy-webpack-plugin',
75+
// major version contains breaking changes
76+
'chokidar',
77+
'style-loader',
78+
'http-proxy-middleware',
79+
],
8380
}

0 commit comments

Comments
 (0)