Skip to content

Commit

Permalink
feat(replacements): fakerjs to scoped (#27206)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Feb 11, 2024
1 parent 8fb2a6b commit 85d95a5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions lib/config/presets/internal/replacements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const presets: Record<string, Preset> = {
'replacements:babel-eslint-to-eslint-parser',
'replacements:containerbase',
'replacements:cucumber-to-scoped',
'replacements:fakerjs-to-scoped',
'replacements:fastify-to-scoped',
'replacements:hapi-to-scoped',
'replacements:jade-to-pug',
Expand Down Expand Up @@ -181,6 +182,46 @@ export const presets: Record<string, Preset> = {
},
],
},
'fakerjs-to-scoped': {
description: '`fakerjs` packages became scoped.',
packageRules: [
{
matchCurrentVersion: '>=5.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['faker'],
replacementName: '@faker-js/faker',
replacementVersion: '5.5.3',
},
{
matchCurrentVersion: '>=4.0.0 <5.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['faker'],
replacementName: '@faker-js/faker',
replacementVersion: '4.1.0',
},
{
matchCurrentVersion: '>=3.0.0 <4.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['faker'],
replacementName: '@faker-js/faker',
replacementVersion: '3.1.0',
},
{
matchCurrentVersion: '>=2.0.0 <3.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['faker'],
replacementName: '@faker-js/faker',
replacementVersion: '2.1.5',
},
{
matchCurrentVersion: '<2.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['faker'],
replacementName: '@faker-js/faker',
replacementVersion: '1.1.0',
},
],
},
'fastify-to-scoped': {
description: '`fastify` packages became scoped.',
packageRules: [
Expand Down

0 comments on commit 85d95a5

Please sign in to comment.