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

* 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
parent ae4229b172
commit 84f8a4ac3b
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
}