Skip to content

fix(config): stop appending blank lines - #137

Open
velikodniy wants to merge 1 commit into
denoland:mainfrom
velikodniy:fix-config-extra-newline
Open

fix(config): stop appending blank lines#137
velikodniy wants to merge 1 commit into
denoland:mainfrom
velikodniy:fix-config-extra-newline

Conversation

@velikodniy

Copy link
Copy Markdown
Contributor

Summary

Problem

After #103, config updates preserve existing deploy fields, but each update adds an extra empty line to deno.json. This leaves the Git working tree dirty after every deployment.

Changes

Write the output from jsonc-morph directly, since it already preserves the config's trailing whitespace.

Tests

Added a regression test that updates the same config twice and verifies that no blank lines accumulate.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant