From 3c88f716f078632e34e1aabd570cc378c569dbb6 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Mon, 25 Sep 2023 13:12:04 +0200 Subject: [PATCH] chore: simplify fixed version consistency check --- utils/check_package_version_consistency.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/utils/check_package_version_consistency.js b/utils/check_package_version_consistency.js index 6bfaece5e..41e40fdce 100644 --- a/utils/check_package_version_consistency.js +++ b/utils/check_package_version_consistency.js @@ -58,14 +58,12 @@ async function main() { let nbErrors = 0; // finding the packages that are present with multiple versions - for (const collectedDepedencies of [allDependencies, devDependencies]) { - for (const [module, versionPackages] of Object.entries(collectedDepedencies)) { - const versions = Object.keys(versionPackages); - if (versions.length !== 1) { - console.log("Warning module ", module, " has multiple versions ", versions.join(" ")); - console.log(versionPackages); - nbErrors++; - } + for (const [module, versionPackages] of Object.entries(allDependencies)) { + const versions = Object.keys(versionPackages); + if (versions.length !== 1) { + console.log("Warning module ", module, " has multiple versions ", versions.join(" ")); + console.log(versionPackages); + nbErrors++; } } if (nbErrors > 0) {