-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: append eol to package.json #38
Conversation
👍 no objection from me |
@nexdrew made you an owner of the npm package FYI. |
Would this cause inconsistent eol? Or we don't want to enforce it? |
@stevemao Not sure I follow you. What do you mean by "inconsistent eol"? Do you mean changing it b/w Windows and *nix runs? Do you think we should try to detect which eol the files have (like Atom) before rewriting/appending to them? That would probably be better. |
If i ran the command on windows and later on i run the same command on
|
@stevemao Yeah, that's a good point. I'll change it to detect existing eol instead of always using the platform-specific one. |
I seem to have opened a small can of worms here. It works as expected for package.json (though we might want to consider also using If you think this is too much, I'd be ok simplifying this to just append |
Well |
Fixes #37.
I'm thinking we should probably replace all
\n
characters withos.EOL
to be more Windows friendly. I separated the commits so I can easily revert the 2nd one if you disagree.