Skip to content

Formatting of package.json is not preserved #21

@sanderploegsma

Description

@sanderploegsma

When using this plugin to automatically bump the package.json version it completely rewrites the file if it wasn't already indented with 4 spaces. This is probably unwanted behavior, because it leads to extra changes in the diff of release commits. Additionally, it caused the linting stage of my repository to fail because the package.json was incorrectly formatted after it was updated by an automated release pipeline.

Instead, it would be much better if this plugin only changes the line in the package.json containing the actual version, and leave the rest of the file untouched.

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