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) {