Skip to content

Automated Dependency Updates for Bun

Categories: js

Renovate supports updating Bun dependencies.

File Matching

By default, Renovate will check any files matching the following regular expression: (^|/)bun\.lockb$.

For details on how to extend a manager's fileMatch value, please follow this link.

Supported datasources

This manager supports extracting the following datasources: github-tags, npm.

Default config

{
  "fileMatch": [
    "(^|/)bun\\.lockb$"
  ],
  "digest": {
    "prBodyDefinitions": {
      "Change": "{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}"
    }
  },
  "prBodyDefinitions": {
    "Change": "[{{#if displayFrom}}`{{{displayFrom}}}` -> {{else}}{{#if currentValue}}`{{{currentValue}}}` -> {{/if}}{{/if}}{{#if displayTo}}`{{{displayTo}}}`{{else}}`{{{newValue}}}`{{/if}}]({{#if depName}}https://renovatebot.com/diffs/npm/{{replace '/' '%2f' depName}}/{{{currentVersion}}}/{{{newVersion}}}{{/if}})"
  }
}

Additional Information

Used for updating bun projects. Bun is a tool for JavaScript projects and therefore an alternative to managers like npm, pnpm and Yarn.

If a package.json is found to be part of bun manager results then the same file will be excluded from the npm manager results unless an npm/pnpm/Yarn lock file is also found.

Open items

The below list of features were current when this page was generated on November 21, 2024.

Feature requests

  • Bun package manager with npmrc #30926
  • bun: support bunfig.toml credentials #24461
  • bun: support bunfig.toml for custom registry detection #24460
  • bun: workspace support #24459