From 0e7ece66d63d567b7a00ef2bec330c4b5223c41d Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Fri, 29 Nov 2019 18:09:42 +0800 Subject: [PATCH] feat: add `nyc` field (#81) * feat: add `nyc` field * docs: update readme * fix: move `nyc` under jest * fix: `Istanbul` lib name --- README.md | 1 + index.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 8fc4840a..5068179f 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,7 @@ npx sort-package-json - [babel](https://babeljs.io/) - [eslint](https://eslint.org/) - [jest](https://jestjs.io/) +- [Istanbul](https://istanbul.js.org/) - [xo](https://github.com/xojs/xo) - [prettier](https://prettier.io/) diff --git a/index.js b/index.js index 909ea49b..27db947d 100755 --- a/index.js +++ b/index.js @@ -54,6 +54,7 @@ const sortOrder = [ 'stylelint', 'ava', 'jest', + 'nyc', 'dependencies', 'devDependencies', 'peerDependencies', @@ -176,6 +177,7 @@ function sortPackageJson(packageJson, options = {}) { sortSubKey('eslintConfig'); sortSubKey('ava'); sortSubKey('jest'); + sortSubKey('nyc'); sortSubKey('xo'); sortSubKey('prettier'); sortSubKey('dependencies');