1
0
Fork 0

nodejs: hack eslint-plugin-svelte3 to use Svelte 4

This commit is contained in:
Alan Faubert 2023-06-29 08:08:32 -04:00
parent 66e514bfed
commit 61cf52f8e9
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
exports.hooks = {
readPackage: pkg => {
if (pkg.name === 'eslint-plugin-svelte3') {
pkg.dependencies = { svelte: '3' };
pkg.peerDependencies.svelte = '4';
pkg.dependencies = { svelte: '4' };
}
return pkg;
},