Skip to content
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

@nx/devkit writeJsonFile always appends a new line #20335

Open
alfaproject opened this issue Nov 19, 2023 · 0 comments
Open

@nx/devkit writeJsonFile always appends a new line #20335

alfaproject opened this issue Nov 19, 2023 · 0 comments

Comments

@alfaproject
Copy link
Contributor

alfaproject commented Nov 19, 2023

Current Behavior

writeJsonFile from @nx/devkit always appends a new line because it calls the serializeJson function which always appends a new line, so the appendNewLine effectively doesn't work as intended (it either adds 1 new line or 2 if true)

Expected Behavior

writeJsonFile respects the appendNewLine option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants