Skip to content
Snippets Groups Projects
Unverified Commit 7fb7b7a5 authored by Matt Travi's avatar Matt Travi Committed by GitHub
Browse files

feat(hapi-replacements): added replacements for hapi and joi (#13135)


Co-authored-by: default avatarRhys Arkins <rhys@arkins.net>
parent 1e1c7512
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,10 @@ export const presets: Record<string, Preset> = {
description: 'All replacements',
extends: [
'replacements:cucumber-to-scoped',
'replacements:hapi-to-scoped',
'replacements:jade-to-pug',
'replacements:joi-to-scoped',
'replacements:joi-to-unscoped',
'replacements:rollup-node-resolve-to-scoped',
],
},
......@@ -21,6 +24,18 @@ export const presets: Record<string, Preset> = {
},
],
},
'hapi-to-scoped': {
description: 'hapi became scoped',
packageRules: [
{
matchCurrentVersion: '>=18.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['hapi'],
replacementName: '@hapi/hapi',
replacementVersion: '18.2.0',
},
],
},
'jade-to-pug': {
description: 'Jade was renamed to Pug',
packageRules: [
......@@ -32,6 +47,30 @@ export const presets: Record<string, Preset> = {
},
],
},
'joi-to-scoped': {
description: 'joi became scoped under the hapi organization',
packageRules: [
{
matchCurrentVersion: '>=14.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['joi'],
replacementName: '@hapi/joi',
replacementVersion: '14.4.0',
},
],
},
'joi-to-unscoped': {
description: 'joi was moved out of the hapi organization',
packageRules: [
{
matchCurrentVersion: '>=17.0.0',
matchDatasources: ['npm'],
matchPackageNames: ['@hapi/joi'],
replacementName: 'joi',
replacementVersion: '17.1.1',
},
],
},
'rollup-node-resolve-to-scoped': {
description: 'the node-resolve plugin for rollup became scoped',
packageRules: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment