Skip to content

Commit

Permalink
feat(preset): add rollup node-resolve plugin to the replacements list (
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Nov 29, 2021
1 parent d5f04ef commit 5c7e950
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lib/config/presets/internal/replacements.ts
Expand Up @@ -3,7 +3,11 @@ import type { Preset } from '../types';
export const presets: Record<string, Preset> = {
all: {
description: 'All replacements',
extends: ['replacements:jade-to-pug', 'replacements:cucumber-to-scoped'],
extends: [
'replacements:jade-to-pug',
'replacements:cucumber-to-scoped',
'replacements:rollup-node-resolve-to-scoped',
],
},
'jade-to-pug': {
description: 'Jade was renamed to Pug',
Expand All @@ -27,4 +31,15 @@ export const presets: Record<string, Preset> = {
},
],
},
'rollup-node-resolve-to-scoped': {
description: 'the node-resolve plugin for rollup became scoped',
packageRules: [
{
matchDatasources: ['npm'],
matchPackageNames: ['rollup-plugin-node-resolve'],
replacementName: '@rollup/plugin-node-resolve',
replacementVersion: '6.0.0',
},
],
},
};

0 comments on commit 5c7e950

Please sign in to comment.