-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 migrate latest add extra empty line to the package.json #19315
Comments
I can confirm the same behavior on macOS. |
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. |
hi bot, the issue still exists please don't close the ticket |
) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #19315
) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #19315 (cherry picked from commit 5757350)
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
when I ran
nx migrate latest
even if there are nothing to update it always add one extra empty line at the end of the filebecause it cases
nx format:check
to fail in the pipeline if unintentionally committedExpected Behavior
to have only one empty line at the end of the
package.json
fileGitHub Repo
https://github.com/robertIsaac/nx-ng-nest
Steps to Reproduce
nx migrate latest
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
if there are 0 empty lines it add one empty line (to be 1)
if there are 1 empty line, it add additional line (to be 2)
if there are 2 empty lines, it doesn't or remove one line (stay 2)
if there are 3 empty lines, it remove one line (to be 2)
if there are 10 empty lines, it remove 8 lines (to be 2)
so it seems it check for the lines, but the check is faulty
The text was updated successfully, but these errors were encountered: