Skip to content

np formats the package.json file upon use. #768

Open
@rocktimsaikia

Description

@rocktimsaikia

When np bumps the version in the package.json file. It also formats the file itself. Likely using prettier or something internally but people using different formatter like biome needs to make another commit just to re-format the file.

Expected behavior

It should only update the version field in the package.json file without doing any formatting to the json file itself.

Environment

np - v10.2.0
Node.js - v22.14.0
npm - 11.3.0
Git - 2.43.0
OS - Ubuntu 24.04.2 LTS (WSL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions