Skip to content

Commit

Permalink
fix(scripts): get JS version from generators
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed May 19, 2022
1 parent 4bc1931 commit 4863424
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 4863424

Please sign in to comment.