Files
renovate/lib/modules/manager/nuget/index.ts
Jamie Tanna 5ffc308673 docs(manager): indicate where lockFileMaintenance runs external commands (#44914)
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>
2026-07-28 11:44:22 +00:00

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';