keithamus / sort-package-json

Sort an Object or package.json based on the well-known package.json keys
MIT License
806 stars 87 forks source link

Support for node corepack #273

Open sebaplaza opened 2 years ago

sebaplaza commented 2 years ago

Since node 16, we can use corepack to define a packageManager into our package.json

We should sort these properties at the beginning of package.json

  "packageManager": "pnpm@7.11.0",
  "engines": {
    "node": ">=16",
    "pnpm": ">=7"
  },
  "engineStrict": true
keithamus commented 2 years ago

PRs welcome!