You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.
But this hardly seems like the right way to fix this. I would love to see this fixed (and would be happy to submit a PR, if anyone can come up with a more prudent way of fixing this). I hate seeing the linting errors, due to the missing new line. :)
The text was updated successfully, but these errors were encountered:
Interesting. I was not able to reproduce this using the yo swaggerize --only=handlers. @mex - Can you share more details on OS, node version etc. Wondering if this issue, is specific to the environment that the commands are getting executed.
It seems like there is a problem with updating handlers (not creating them), where the new line at the end of the file gets removed.
During my local testing I could fix it by simply concatenating the generated code with a new line before writing to file here:
generator-swaggerize/app/index.js
Line 259 in 3b96665
But this hardly seems like the right way to fix this. I would love to see this fixed (and would be happy to submit a PR, if anyone can come up with a more prudent way of fixing this). I hate seeing the linting errors, due to the missing new line. :)
The text was updated successfully, but these errors were encountered: