Skip to content

Commit

Permalink
fix(scripts): get JS version from generators (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored May 19, 2022
1 parent 96fddef commit 0835bc8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/release/process-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0835bc8

Please sign in to comment.