Skip to content

Commit

Permalink
feat: add nyc field (#81)
Browse files Browse the repository at this point in the history
* feat: add `nyc` field

* docs: update readme

* fix: move `nyc` under jest

* fix: `Istanbul` lib name
  • Loading branch information
fisker authored and keithamus committed Nov 29, 2019
1 parent 036c92d commit 0e7ece6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const sortOrder = [
'stylelint',
'ava',
'jest',
'nyc',
'dependencies',
'devDependencies',
'peerDependencies',
Expand Down Expand Up @@ -176,6 +177,7 @@ function sortPackageJson(packageJson, options = {}) {
sortSubKey('eslintConfig');
sortSubKey('ava');
sortSubKey('jest');
sortSubKey('nyc');
sortSubKey('xo');
sortSubKey('prettier');
sortSubKey('dependencies');
Expand Down

0 comments on commit 0e7ece6

Please sign in to comment.