hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client
https://heyapi.vercel.app
Other
995 stars 82 forks source link

Running Prettier doesn't report error when it can't find prettier #969

Open baraknaveh opened 2 weeks ago

baraknaveh commented 2 weeks ago

Description

Here's the output:

$ pnpm openapi-ts /tmp/my-api.json
✨ Creating Fetch client
✨ Running Prettier
✨ Running ESLint
✨ Done! Your client is located in: <redacted>

however, there's no prettier installed. I would expect it to at least output a warning when it can't actually run prettier.

Reproducible example or configuration

https://stackblitz.com/edit/hey-api-client-fetch-example

OpenAPI specification (optional)

No response

System information (optional)

No response

stackblitz[bot] commented 2 weeks ago

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.