Skip to content

Commit

Permalink
chore: Match all dep versions from addon
Browse files Browse the repository at this point in the history
  • Loading branch information
TSenter committed Sep 16, 2024
1 parent f23ad37 commit 393d8f1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ const filesToCopyFromRootToAddonInAddonOnlyMode = [
'README.md',
];

const dependenciesToKeepInSync = [
'@typescript-eslint/eslint-plugin',
'@typescript-eslint/parser',
];

module.exports = {
description,

Expand Down Expand Up @@ -224,12 +219,10 @@ module.exports = {

const addonDependencies = json.devDependencies;

for (const dep of dependenciesToKeepInSync) {
if (!addonDependencies[dep]) {
continue;
for (const [dep, version] of Object.entries(addonDependencies)) {
if (dep in additions) {
additions[dep] = version;
}

additions[dep] = addonDependencies[dep];
}

merge(pkg, additions);
Expand Down

0 comments on commit 393d8f1

Please sign in to comment.