openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

An option to clean folder before generation

Open ldsenow opened this issue 3 years ago • 1 comments

As the title suggests, it would be a convenient option.

ldsenow avatar Oct 06 '22 03:10 ldsenow

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.

i-shaban-sloboda avatar Oct 11 '22 13:10 i-shaban-sloboda