Skip to content

CLI: preserve package.json trailing newline when updating package versions #5167

Backlog

Description

@andershagbard

When trigger deploy or trigger dev offers to update @trigger.dev/* package versions, it rewrites package.json without a trailing newline, even if the original file had one.

Expected: If the original package.json ends with a newline, the updated file, the backup, and the file restored on rollback should also end with a newline.

Actual: The rewritten package.json has no trailing newline, which produces a spurious diff on the last line.

Ref.: #5150

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions