Skip to content

Commit

Permalink
Align version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
legio-vi-ferrata committed Jan 10, 2024
1 parent c318ac5 commit 8f5fe38
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/pluggable-widgets-tools/utils/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8f5fe38

Please sign in to comment.