mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-31 09:41:46 +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>
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
import type { Category } from '../../../constants/index.ts';
|
|
import { DockerDatasource } from '../../datasource/docker/index.ts';
|
|
import { DotnetVersionDatasource } from '../../datasource/dotnet-version/index.ts';
|
|
import { NugetDatasource } from '../../datasource/nuget/index.ts';
|
|
|
|
export { updateArtifacts } from './artifacts.ts';
|
|
export { extractPackageFile } from './extract.ts';
|
|
export { bumpPackageVersion } from './update.ts';
|
|
|
|
export const supportsLockFileMaintenance = true;
|
|
export const lockFileNames = ['packages.lock.json'];
|
|
export const lockFileMaintenanceIsDelegatedToPackageManager = true;
|
|
|
|
export const displayName = 'NuGet';
|
|
export const url = 'https://learn.microsoft.com/nuget';
|
|
export const categories: Category[] = ['dotnet'];
|
|
|
|
export const defaultConfig = {
|
|
managerFilePatterns: [
|
|
'/\\.(?:cs|fs|vb|sql)proj$/',
|
|
'/\\.(?:props|targets)$/',
|
|
'/(^|/)dotnet-tools\\.json$/',
|
|
'/(^|/)global\\.json$/',
|
|
],
|
|
// after Renovate 43.208.2, this is required to make sure that NuGet's treatment of "bare versions" as a range does not lead to a lack of dependency updates
|
|
// NOTE that in the next major version, this will be removed, and users will need to decide whether to re-enable this
|
|
rangeStrategy: 'bump',
|
|
packageRules: [
|
|
{
|
|
matchDepTypes: ['msbuild-sdk'],
|
|
rangeStrategy: 'bump',
|
|
},
|
|
],
|
|
};
|
|
|
|
export const supportedDatasources = [
|
|
DockerDatasource.id,
|
|
DotnetVersionDatasource.id,
|
|
NugetDatasource.id,
|
|
];
|
|
|
|
export { knownDepTypes } from './dep-types.ts';
|