mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-10 10:53:36 +02:00
chore(make): remove --axios from swagger-typescript-api codegen
Drop the `--axios` flag from the `gen-api-types` target and reflow the `bunx` `swagger-typescript-api generate` arguments for clearer continuation lines. Now generated api.ts is fetch API based and no longer rely on axios.
This commit is contained in:
4
Makefile
4
Makefile
@@ -198,8 +198,8 @@ gen-swagger:
|
||||
|
||||
gen-api-types: gen-swagger
|
||||
# --disable-throw-on-error
|
||||
bunx --bun swagger-typescript-api generate --sort-types --generate-union-enums --axios --add-readonly --route-types \
|
||||
--responses -o ${WEBUI_DIR}/src/lib -n api.ts -p internal/api/v1/docs/swagger.json
|
||||
bunx --bun swagger-typescript-api generate --sort-types --generate-union-enums --add-readonly --route-types \
|
||||
--responses -o ${WEBUI_DIR}/src/lib -n api.ts -p internal/api/v1/docs/swagger.json
|
||||
|
||||
.PHONY: gen-cli build-cli update-wiki
|
||||
|
||||
|
||||
Reference in New Issue
Block a user