chore(open-api): remove no-op patch ()

* chore: remove no-op patch

* address code review
This commit is contained in:
Ben McCann 2024-01-25 20:50:48 -08:00 committed by GitHub
commit 84f8a4ac3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 1 additions and 800 deletions

View file

@ -19,11 +19,7 @@ function dart {
function typescript {
rm -rf ./typescript-sdk/client
cd ./templates/typescript
wget -O apiInner.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/$OPENAPI_GENERATOR_VERSION/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
patch -u apiInner.mustache < apiInner.mustache.patch
cd ../..
npx --yes @openapitools/openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ./typescript-sdk/client -t ./templates/typescript --additional-properties=useSingleRequestParameter=true
npx --yes @openapitools/openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ./typescript-sdk/client --additional-properties=useSingleRequestParameter=true
npm --prefix typescript-sdk ci && npm --prefix typescript-sdk run build
}