Skip to content

Build your personal knowledge base with Trilium Notes

5.1 KB
Raw Blame
{
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": [
        "config:recommended"
    ],
    "schedule": [
        "before 3am"
    ],
    "labels": [
        "dependencies",
        "renovate"
    ],
    "prHourlyLimit": 0,
    "prConcurrentLimit": 0,
    "branchConcurrentLimit": 0,
    "minimumReleaseAge": "3 days",
    "ignorePaths": [
        "**/node_modules/**",
        "apps/edit-docs/demo/**",
        "docs/**",
        "apps/server/Dockerfile.legacy",
        "apps/mobile/android/**"
    ],
    "html": {
        "enabled": false
    },
    "bun": {
        "enabled": false
    },
    "nix": {
        "enabled": true
    },
    "customManagers": [
        {
            "description": "The deploy workflows install wrangler globally instead of from the lockfile, so the version is pinned inline and Renovate moves the pin",
            "customType": "regex",
            "managerFilePatterns": [
                "/^\\.github/(workflows|actions)/.+\\.ya?ml$/"
            ],
            "matchStrings": [
                "npm install -g wrangler@(?<currentValue>\\S+)"
            ],
            "depNameTemplate": "wrangler",
            "datasourceTemplate": "npm"
        }
    ],
    "packageRules": [
        {
            "description": "Never auto-update the Android Gradle Plugin; it must track the installed Android Studio, not the latest release",
            "matchPackageNames": ["com.android.tools.build:gradle"],
            "enabled": false
        },
        {
            "description": "pdfjs-dist is owned by the update-pdfjs-viewer workflow, which bumps it together with the viewer vendored under packages/pdfjs-viewer/viewer. pdf.js refuses to start when the two versions disagree, so a bare version bump is never a usable change",
            "matchPackageNames": ["pdfjs-dist"],
            "enabled": false
        },
        {
            "description": "pnpm 12 ships native binaries instead of a JS implementation and publishes none for 32-bit ARM, which Dockerfile.legacy builds for. The last release that runs anywhere Node does is 11.x",
            "matchFileNames": ["apps/server/docker/package.json"],
            "matchPackageNames": ["pnpm"],
            "allowedVersions": "<12"
        },
        {
            "description": "brace-expansion is pinned per major in the pnpm-workspace.yaml overrides. v5 exports { expand } instead of a function, so minimatch below 10 throws at the first brace pattern; on minimatch@3 that breaks @electron/asar@3 and every electron-forge make, which only the nightly runs",
            "matchPackageNames": ["brace-expansion"],
            "matchUpdateTypes": ["major"],
            "enabled": false
        },
        {
            "description": "The minimatch@<3.1.4 override in pnpm-workspace.yaml is a security floor for consumers of the v3 API (glob@7, @electron/asar@3, multimatch@6, eslint-plugin-react), so it stays on ^3. glob@7 throws on every wildcard pattern under minimatch@10+, which breaks the deb, rpm and flatpak makers in electron-forge make, which only the nightly runs",
            "matchPackageNames": ["minimatch"],
            "matchUpdateTypes": ["major"],
            "enabled": false
        },
        {
            "matchPackageNames": ["@fsegurai/codemirror-theme-**", "@catppuccin/codemirror"],
            "groupName": "codemirror themes"
        },
        {
            "description": "The CodeMirror and Lezer runtimes are pinned together in the pnpm-workspace.yaml overrides, and a partial bump leaves two copies of a singleton in the tree",
            "matchPackageNames": ["@codemirror/**", "@lezer/**"],
            "groupName": "codemirror"
        },
        {
            "matchPackageNames": "**-config-ckeditor5",
            "groupName": "ckeditor5 config packages"
        },
        {
            "matchPackageNames": [
                "@ckeditor/**",
                "ckeditor5"
            ],
            "groupName": "ckeditor monorepo"
        },
        {
            "description": "Group FullCalendar packages because mixed core versions make plugins incompatible.",
            "matchPackageNames": [
                "fullcalendar",
                "@fullcalendar/**",
                "@full-ui/**"
            ],
            "groupName": "fullcalendar monorepo"
        },
        {
            "description": "Capacitor plugins peer-depend on @capacitor/core, and the native android and ios packages must match it, so the mobile app's Capacitor packages move in one PR",
            "matchPackageNames": ["@capacitor/**"],
            "groupName": "capacitor"
        },
        {
            "description": "terra-draw and its MapLibre adapter are released together from one monorepo, and a feature in one usually needs the matching release of the other",
            "matchPackageNames": ["terra-draw", "terra-draw-**"],
            "groupName": "terra-draw monorepo"
        },
        {
            "matchPackageNames": "@univerjs/**",
            "groupName": "univer monorepo"
        },
        {
            "matchPackageNames": [
                "ai",
                "@ai-sdk/**"
            ],
            "groupName": "ai sdk"
        }
    ]
}