kubb-labs / kubb

The ultimate toolkit for working with APIs.
https://kubb.dev
MIT License
670 stars 54 forks source link

Kubb msw1 being generated in edgecase when ms2 is used everywhere else #1033

Closed Samuel-Morgan-Tyghe closed 3 months ago

Samuel-Morgan-Tyghe commented 3 months ago

What version of kubb is running?

2.12.3

What platform is your computer?

macos

What version of external packages are you using(@tanstack-query, MSW, React, Vue, ...)

"@kubb/cli": "^2.12.3", "@kubb/core": "^2.12.3", "@kubb/swagger": "^2.19.5", "@kubb/swagger-client": "^2.12.3", "@kubb/swagger-faker": "^2.19.5", "@kubb/swagger-msw": "^2.19.5", "@kubb/swagger-tanstack-query": "^2.12.3", "@kubb/swagger-ts": "^2.19.5", "@kubb/swagger-zod": "^2.12.3",

What steps can reproduce the bug?

I have nearly 100 msw generated in msw2 then i also hav msw1 in edgecase

image

How often does this bug happen?

Every time

What is the expected behavior?

everything should be generating msw2

Swagger/OpenAPI file?

api-documentation.yaml.zip

Additional information

No response

Samuel-Morgan-Tyghe commented 3 months ago

fixed with deleting all then running generate?

i thought expected behavoir would be to delete unused files 🤔