Skip to content

Commit

Permalink
refactor: rename messageFormat replacement preset and add migration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lstoeferle committed Apr 4, 2024
1 parent 14899d8 commit e1a0184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/config/presets/common.ts
Expand Up @@ -29,6 +29,8 @@ export const removedPresets: Record<string, string | null> = {
'helpers:oddIsUnstablePackages': null,
'group:jsTestMonMajor': 'group:jsTestNonMajor',
'github>whitesource/merge-confidence:beta': 'mergeConfidence:all-badges',
'replacements:messageFormat-{{package}}-to-@messageformat/{{package}}':
'replacements:messageFormat-to-scoped',
};

const renamedMonorepos: Record<string, string> = {
Expand Down
4 changes: 2 additions & 2 deletions lib/config/presets/internal/replacements.ts
Expand Up @@ -954,7 +954,7 @@ const mui: PresetTemplate = {

const messageFormat: PresetTemplate = {
description:
'The `messageformat` monorepo package naming scheme changed from `messageFormat-{{package}}`-to-`@messageformat/{{package}}`.',
'The `messageformat` monorepo package naming scheme changed from `messageFormat-{{package}}` to `@messageformat/{{package}}`.',
packageRules: [
{
matchCurrentVersion: '>=2.0.0 <3.0.0',
Expand All @@ -981,7 +981,7 @@ const messageFormat: PresetTemplate = {
replacementVersion: '5.0.0',
},
],
title: 'messageFormat-{{package}}-to-@messageformat/{{package}}',
title: 'messageFormat-to-scoped',
};

addPresets(presets, messageFormat, mui);

0 comments on commit e1a0184

Please sign in to comment.