Skip to content

Commit

Permalink
build(codegen): fix openapi concurrent jar download
Browse files Browse the repository at this point in the history
Added a script to  warm up the file-system cache where the
.jar files are downloaded (which contain the OpenAPI generator)

This way the .jar download does not happen concurrently for 26
packages but instead just the one time right before the codegen
script is executed.

IMPORTANT NOTE: If you change the OpenAPI generator version
that is being used by the project from the current v5.2.1 and v6.3.0
then these warm-up scripts must also be updated at the same time
otherwise the same issue that we are fixing here now will creep back
in immediately.

 Fixes #2461

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz authored and sandeepnRES committed Jun 19, 2023
1 parent 03e1b56 commit da99672
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"lint": "eslint '*/*/src/**/*.{js,ts}' --quiet --fix && cspell \"*/*/src/**/*.{js,ts}\"",
"tsc": "tsc --build --verbose",
"codegen": "lerna run codegen",
"precodegen": "yarn codegen:warmup-v5.2.1 & yarn codegen:warmup-v6.3.0",
"codegen:warmup-v5.2.1": "yarn openapi-generator-cli version-manager set 5.2.1 && rm openapitools.json",
"codegen:warmup-v6.3.0": "yarn openapi-generator-cli version-manager set 6.3.0 && rm openapitools.json",
"watch-other": "lerna run --parallel watch",
"watch-tsc": "tsc --build --watch",
"watch": "run-p -r watch-*",
Expand Down

0 comments on commit da99672

Please sign in to comment.