version: 2

multi-ecosystem-groups:
  dependencies:
    schedule:
      interval: "weekly"

updates:
  - package-ecosystem: "cargo"
    # Explicitly list root only — packages/ruby/ext and packages/r/src have
    # standalone workspaces with path deps to vendored crates that only exist
    # at build time. Dependabot cannot resolve these paths.
    directories:
      - "/"
    ignore:
      - dependency-name: "kreuzberg"
      - dependency-name: "kreuzberg-ffi"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "pip"
    directories:
      - "/"
      - "/packages/python"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "npm"
    directories:
      - "/"
      - "/crates/kreuzberg-node"
      - "/crates/kreuzberg-wasm"
      - "/packages/typescript/core"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "bundler"
    directory: "/packages/ruby"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "composer"
    directories:
      - "/"
      - "/packages/php"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "gomod"
    directory: "/packages/go/v5"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "maven"
    directory: "/packages/java"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "nuget"
    directory: "/packages/csharp"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"

  - package-ecosystem: "mix"
    directory: "/packages/elixir"
    patterns: ["*"]
    multi-ecosystem-group: "dependencies"
