Skip to content

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

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

Open
rocktimsaikia opened this issue Apr 20, 2025 · 0 comments
Open

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

rocktimsaikia opened this issue Apr 20, 2025 · 0 comments

Comments

@rocktimsaikia
Copy link

rocktimsaikia commented Apr 20, 2025

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)

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

No branches or pull requests

1 participant