-
Notifications
You must be signed in to change notification settings - Fork 89
Update type generation command to use heyapi #7920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,8 +26,8 @@ | |
| "lint": "eslint --fix .", | ||
| "lint:ci": "eslint .", | ||
| "lint-staged:fix": "lint-staged --diff=main", | ||
| "openapi:generate": "openapi --input http://localhost:8080/openapi.json --output ./src/types/api --exportCore false --exportServices false --indent 2 && prettier --write .", | ||
| "openapi:generate-dictionary": "openapi --input http://localhost:8081/openapi.json --output ./src/types/dictionary-api --exportCore false --exportServices false --indent 2", | ||
| "openapi:generate": "openapi-ts --file openapi-ts-api.config.ts", | ||
| "openapi:generate-dictionary": "openapi-ts --file openapi-ts-dictionary.config.ts", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "start": "next start", | ||
| "test": "jest", | ||
| "test:watch": "jest --watchAll", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clients/admin-ui/package.json:29The old command ran
prettier --write .after code generation. The new config handles formatting viaformat: "prettier"inopenapi-ts-api.config.ts, so that's covered for the API types. Just worth confirming the prettier formatting output is equivalent — particularly that the same files are reformatted (the old command targeted., the new one targets only the generated output path).