@ma.vu/pjfix
v1.0.1
Published
Fix package.json formatting by exploiting npm install/uninstall
Readme
pjfix
Fixes package.json formatting the lazy way.
npm lets you install and uninstall packages, and as a side effect it re-serializes your package.json into its preferred format (sorted keys, consistent spacing, trailing newline). pjfix exploits this — it installs a dummy package and immediately removes it, so npm rewrites package.json for you without leaving any trace.
Why? Because npm pkg fix only fixes a handful of things, prettier won't sort dependency keys, and sort-package-json is yet another dev dependency. This is dumber and it works.
Installation
npx @ma.vu/pjfixLicense
ISC
