From 0835bc8b8e58d38075e1296167400af167b9830c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Thu, 19 May 2022 16:43:33 +0200 Subject: [PATCH] fix(scripts): get JS version from generators (#519) --- scripts/release/process-release.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/release/process-release.ts b/scripts/release/process-release.ts index 523ca01528..8645e3b205 100755 --- a/scripts/release/process-release.ts +++ b/scripts/release/process-release.ts @@ -120,9 +120,7 @@ async function updateVersionForJavascript( Object.values(GENERATORS) .filter((gen) => gen.language === 'javascript') .forEach((gen) => { - const additionalProperties = - openapiConfig['generator-cli'].generators[gen.key].additionalProperties; - + const additionalProperties = gen.additionalProperties; const newVersion = semver.inc( additionalProperties.packageVersion, jsVersion.releaseType