From 0cd4fb1da08baa6a0c6d75755af3918906fe8317 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Mon, 3 Jan 2022 10:29:57 -0330 Subject: [PATCH] Allow Flask prerelease versions (#13156) The build script only allowed prerelease versions for the "beta" build type (e.g. `X.Y.Z-beta.0`). Now it allows Flask prerelease versions as well. This is required for the Flask release, where the prerelease version helps distinguish the Flask error reports and metrics. --- development/build/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/development/build/utils.js b/development/build/utils.js index e6ca731bf..ec944f361 100644 --- a/development/build/utils.js +++ b/development/build/utils.js @@ -40,7 +40,7 @@ function getBrowserVersionMap(platforms) { [buildType, buildVersion] = prerelease; if (!String(buildVersion).match(/^\d+$/u)) { throw new Error(`Invalid prerelease build version: '${buildVersion}'`); - } else if (buildType !== BuildType.beta) { + } else if (![BuildType.beta, BuildType.flask].includes(buildType)) { throw new Error(`Invalid prerelease build type: ${buildType}`); } }