openapi-typescript-codegen
openapi-typescript-codegen copied to clipboard
An option to clean folder before generation
As the title suggests, it would be a convenient option.
BTW easy workaround maybe:
{
...
"scripts": {
...
"preopenapi:generate-client": "rimraf ./apps/client/src/api/*",
"openapi:generate-client": "openapi --input ./apps/server/swagger/config.json --output ./apps/client/src/api --client axios",
But i'm agree that built in feature will be convenient.