mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +00:00
5ffc308673
As found with recent changes to the Terraform manager, although we generally have `lockFileMaintenance` being executed by an external package manager being invoked by `exec(...)`, there are a few package managers that do not do so. To make it very clear how this happens, we can add a new field to the Manager API, which will provide a means to document this. Co-authored-by: Claude Sonnet 5 <jamie.tanna+claude-code@mend.io>
32 lines
1.5 KiB
TypeScript
32 lines
1.5 KiB
TypeScript
import type { Category } from '../../../constants/index.ts';
|
|
import { GithubTagsDatasource } from '../../datasource/github-tags/index.ts';
|
|
import { NpmDatasource } from '../../datasource/npm/index.ts';
|
|
|
|
export { getRangeStrategy, updateDependency } from '../npm/index.ts';
|
|
export { updateArtifacts } from './artifacts.ts';
|
|
export { extractAllPackageFiles } from './extract.ts';
|
|
|
|
export const url = 'https://bun.sh/docs/cli/install';
|
|
export const categories: Category[] = ['js'];
|
|
|
|
export const supersedesManagers = ['npm'];
|
|
export const supportsLockFileMaintenance = true;
|
|
export const lockFileNames = ['bun.lockb', 'bun.lock'];
|
|
export const lockFileMaintenanceIsDelegatedToPackageManager = true;
|
|
|
|
export const defaultConfig = {
|
|
managerFilePatterns: ['/(^|/)bun\\.lockb?$/', '/(^|/)package\\.json$/'],
|
|
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}})",
|
|
},
|
|
};
|
|
|
|
export const supportedDatasources = [GithubTagsDatasource.id, NpmDatasource.id];
|