Skip to content

Commit

Permalink
When downloading API spec, follow redirects and fail on error
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich authored Feb 26, 2024
1 parent 8424651 commit 8b3575d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mittwald/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build": "run build:clean && run tsc",
"build:clean": "run rimraf dist",
"build:client": "run acg generate --name MittwaldAPIV2 spec/openapi.json src/generated/v2 --optionalHeader x-access-token",
"build:fetch-openapi": "curl --silent https://api.mittwald.de/openapi | spec/transform-openapi.sh > spec/openapi.json",
"build:fetch-openapi": "curl --location --fail --silent https://api.mittwald.de/openapi | spec/transform-openapi.sh > spec/openapi.json",
"build:write-version-file": "run tsx dev/writeVersion.ts",
"format": "run prettier --write '**/*.{ts,tsx,yaml,yml,json,md,mdx,js}'",
"lint": "run eslint .",
Expand Down

0 comments on commit 8b3575d

Please sign in to comment.