{
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": ["github>matrix-org/renovate-config-element-web"],
    "postUpdateOptions": ["pnpmDedupe"],
    "packageRules": [
        {
            "groupName": "testcontainers docker digests",
            "groupSlug": "testcontainers-docker",
            "matchDepTypes": ["testcontainers-docker"],
            "matchPackageNames": ["*"]
        }
    ],
    "customManagers": [
        {
            "customType": "regex",
            "datasourceTemplate": "docker",
            "versioningTemplate": "loose",
            "description": "Update testcontainers docker digests",
            "managerFilePatterns": ["**/testcontainers/*.ts"],
            "matchStrings": ["\\s+\"(?<depName>[^@]+):(?<currentValue>[^@]+)@(?<currentDigest>sha256:[a-f0-9]+)\""],
            "depTypeTemplate": "testcontainers-docker"
        },
        {
            "customType": "jsonata",
            "managerFilePatterns": ["/(^|/)package\\.json$/"],
            "fileFormat": "json",
            "matchStrings": ["hakDependencies.$each(function($v, $k) { { 'packageName': $k, 'currentValue': $v } })"],
            "datasourceTemplate": "npm",
            "depTypeTemplate": "hak"
        }
    ]
}
