Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(presets): match on devDependencies or dev for dev dependencies-related presets #33909

Merged
12 changes: 6 additions & 6 deletions lib/config/presets/internal/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ export const presets: Record<string, Preset> = {
description: 'Disable Renovate Dependency Dashboard creation.',
},
disableDevDependencies: {
description: 'Do not update `devDependencies` versions/ranges.',
description: 'Do not update `devDependencies`/`dev` versions/ranges.',
alsyia marked this conversation as resolved.
Show resolved Hide resolved
packageRules: [
{
enabled: false,
matchDepTypes: ['devDependencies'],
matchDepTypes: ['devDependencies', 'dev'],
},
],
},
Expand Down Expand Up @@ -408,10 +408,10 @@ export const presets: Record<string, Preset> = {
],
},
pinDevDependencies: {
description: 'Pin dependency versions for `devDependencies`.',
description: 'Pin dependency versions for `devDependencies`/`dev`.',
alsyia marked this conversation as resolved.
Show resolved Hide resolved
packageRules: [
{
matchDepTypes: ['devDependencies'],
matchDepTypes: ['devDependencies', 'dev'],
rangeStrategy: 'pin',
},
],
Expand All @@ -422,14 +422,14 @@ export const presets: Record<string, Preset> = {
},
pinOnlyDevDependencies: {
description:
'Pin dependency versions for `devDependencies` and retain SemVer ranges for others.',
'Pin dependency versions for `devDependencies`/`dev` and retain SemVer ranges for others.',
alsyia marked this conversation as resolved.
Show resolved Hide resolved
packageRules: [
{
matchPackageNames: ['*'],
rangeStrategy: 'replace',
},
{
matchDepTypes: ['devDependencies'],
matchDepTypes: ['devDependencies', 'dev'],
rangeStrategy: 'pin',
},
{
Expand Down