76 lines
2.8 KiB
JSON
76 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": ["github>matrix-org/renovate-config-element-web"],
|
|
"postUpdateOptions": ["pnpmDedupe"],
|
|
"stopUpdatingLabel": "X-Blocked",
|
|
"packageRules": [
|
|
{
|
|
"description": "Group all testcontainers docker digests",
|
|
"groupName": "testcontainers docker digests",
|
|
"groupSlug": "testcontainers-docker",
|
|
"matchDepTypes": ["testcontainers-docker"],
|
|
"matchPackageNames": ["*"]
|
|
},
|
|
{
|
|
"description": "Group all pnpm updates",
|
|
"groupName": "pnpm",
|
|
"groupSlug": "pnpm",
|
|
"matchPackageNames": ["pnpm", "ghcr.io/pnpm/pnpm"]
|
|
},
|
|
{
|
|
"description": "Separate updates to overrides from other groups",
|
|
"matchManagers": ["npm"],
|
|
"matchFileNames": ["pnpm-workspace.yaml"],
|
|
"matchDepTypes": ["pnpm-workspace.overrides"],
|
|
"groupSlug": null
|
|
},
|
|
{
|
|
"description": "Disable any major updates to overrides as this almost always is wrong",
|
|
"matchUpdateTypes": ["major"],
|
|
"matchManagers": ["npm"],
|
|
"matchFileNames": ["pnpm-workspace.yaml"],
|
|
"matchDepTypes": ["pnpm-workspace.overrides"],
|
|
"enabled": false
|
|
}
|
|
],
|
|
"customManagers": [
|
|
{
|
|
"description": "Update testcontainers docker digests",
|
|
"customType": "regex",
|
|
"datasourceTemplate": "docker",
|
|
"versioningTemplate": "loose",
|
|
"managerFilePatterns": ["**/testcontainers/*.ts"],
|
|
"matchStrings": ["\\s+\"(?<depName>[^@]+):(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\""],
|
|
"depTypeTemplate": "testcontainers-docker"
|
|
},
|
|
{
|
|
"description": "Update element-desktop hakDependencies",
|
|
"customType": "jsonata",
|
|
"managerFilePatterns": ["/(^|/)package\\.json$/"],
|
|
"fileFormat": "json",
|
|
"matchStrings": ["hakDependencies.$each(function($v, $k) { { 'packageName': $k, 'currentValue': $v } })"],
|
|
"datasourceTemplate": "npm",
|
|
"depTypeTemplate": "hak"
|
|
},
|
|
{
|
|
"description": "Update pnpm in devEngines",
|
|
"customType": "jsonata",
|
|
"fileFormat": "json",
|
|
"managerFilePatterns": ["/(^|/)package\\.json$/"],
|
|
"matchStrings": [
|
|
"devEngines.packageManager.name = 'pnpm' ? { 'currentValue': devEngines.packageManager.version } : null"
|
|
],
|
|
"depNameTemplate": "pnpm",
|
|
"datasourceTemplate": "npm",
|
|
"depTypeTemplate": "devengines"
|
|
}
|
|
],
|
|
"toolSettings": {
|
|
"nodeMaxMemory": 2048
|
|
},
|
|
"env": {
|
|
"PNPM_MAX_WORKERS": "2",
|
|
"PNPM_WORKERS": "2"
|
|
}
|
|
}
|