Skip to content

Commit

Permalink
feat(preset): Replacement preset for Material-UI to MUI (#15774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Ladzaretti committed May 31, 2022
1 parent 56170df commit 2cec5c0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/config/presets/internal/replacements.ts
Expand Up @@ -11,6 +11,7 @@ export const presets: Record<string, Preset> = {
'replacements:jade-to-pug',
'replacements:joi-to-scoped',
'replacements:joi-to-unscoped',
'replacements:material-ui-to-mui',
'replacements:renovate-pep440-to-renovatebot-pep440',
'replacements:rollup-node-resolve-to-scoped',
'replacements:xmldom-to-scoped',
Expand Down Expand Up @@ -86,6 +87,18 @@ export const presets: Record<string, Preset> = {
},
],
},
'material-ui-to-mui': {
description: 'the @material-ui/core monorepo was renamed to @mui/material',
packageRules: [
{
matchCurrentVersion: '>=4.0.0 <5.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['@material-ui/core'],
replacementName: '@mui/material',
replacementVersion: '5.0.0',
},
],
},
'redux-devtools-extension-to-scope': {
description:
'the redux-devtools-extension package was renamed to @redux-devtools/extension',
Expand Down

0 comments on commit 2cec5c0

Please sign in to comment.