From 8f5fe38d7b1fcda3b81fed872636d9ae48b76911 Mon Sep 17 00:00:00 2001 From: Mert Karaca Date: Wed, 10 Jan 2024 16:59:14 +0100 Subject: [PATCH] Align version checks --- .../pluggable-widgets-tools/utils/migration.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/pluggable-widgets-tools/utils/migration.js b/packages/pluggable-widgets-tools/utils/migration.js index 79ee7a65..41a960de 100644 --- a/packages/pluggable-widgets-tools/utils/migration.js +++ b/packages/pluggable-widgets-tools/utils/migration.js @@ -46,17 +46,17 @@ const dependencies = [ { name: "react-native-webview", version: "11.26.1", check: CheckType.MAJOR_MINOR } ]; -const reactVersion = "18.2.0"; -const reactDomVersion = "18.2.0"; -const reactNativeVersion = "0.70.7"; +const reactPackage = { version: "18.2.0", checkType: CheckType.MAJOR_MINOR }; +const reactDomPackage = { version: "18.2.0", checkType: CheckType.MAJOR_MINOR }; +const reactNativePackage = { version: "0.70.7", checkType: CheckType.MINOR }; const resolutionsOverrides = [ - { name: "react", version: reactVersion, check: CheckType.MAJOR_MINOR }, - { name: "react-dom", version: reactDomVersion, check: CheckType.MAJOR_MINOR }, - { name: "react-native", version: reactNativeVersion, check: CheckType.MINOR }, - { name: "@types/react", version: reactVersion, check: CheckType.MAJOR }, - { name: "@types/react-dom", version: reactDomVersion, check: CheckType.MAJOR }, - { name: "@types/react-native", version: reactNativeVersion, check: CheckType.MINOR } + { name: "react", version: reactPackage.version, check: reactPackage.checkType }, + { name: "react-dom", version: reactDomPackage.version, check: reactDomPackage.checkType }, + { name: "react-native", version: reactNativePackage.version, check: reactNativePackage.checkType }, + { name: "@types/react", version: reactPackage.version, check: reactPackage.checkType }, + { name: "@types/react-dom", version: reactDomPackage.version, check: reactDomPackage.checkType }, + { name: "@types/react-native", version: reactNativePackage.version, check: reactNativePackage.checkType } ]; function extractVersions(version) {