Skip to content
This repository was archived by the owner on Jan 25, 2020. It is now read-only.
This repository was archived by the owner on Jan 25, 2020. It is now read-only.

New line at end of file getting removed on update #59

@mex

Description

@mex

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:

fs.writeFileSync(file, update.handlers(file, self.framework, route));

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. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions