From c01b8058e6e2d50a5c1ed69f1bdd4c541bf4aa92 Mon Sep 17 00:00:00 2001 From: Ruslan Lesiutin Date: Sun, 29 Dec 2024 15:36:21 +0000 Subject: [PATCH] DevTools: fix Compiler inegration test with 18.2 (#31904) Currently failing with `TypeError: Invalid Version: 19`, looks like I've overlooked this one in https://github.com/facebook/react/pull/31241. --- scripts/ci/download_devtools_regression_build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/download_devtools_regression_build.js b/scripts/ci/download_devtools_regression_build.js index 7195c194927b9..bdb2c0441b5c4 100755 --- a/scripts/ci/download_devtools_regression_build.js +++ b/scripts/ci/download_devtools_regression_build.js @@ -110,7 +110,7 @@ async function downloadRegressionBuild() { ); } - if (semver.gte(reactVersion, '18.2.0') && semver.lt(reactVersion, '19')) { + if (semver.gte(reactVersion, '18.2.0') && semver.lt(reactVersion, '19.0.0')) { console.log(chalk.white(`Downloading react-compiler-runtime\n`)); await exec( `npm install --prefix ${REGRESSION_FOLDER} react-compiler-runtime`