Skip to content

Commit

Permalink
feat: add maintainers field (#202)
Browse files Browse the repository at this point in the history
* Add `maintainers`

* Update snapshots
  • Loading branch information
fregante authored Sep 16, 2020
1 parent 662c3e8 commit 482c40b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ const fields = [
{ key: 'license', over: sortURLObject },
/* vscode */ { key: 'qna' },
{ key: 'author', over: sortPeopleObject },
{
key: 'maintainers',
over: onArray((maintainers) => maintainers.map(sortPeopleObject)),
},
{
key: 'contributors',
over: onArray((contributors) => contributors.map(sortPeopleObject)),
Expand Down
Binary file modified tests/snapshots/cli.js.snap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/snapshots/main.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Generated by [AVA](https://avajs.dev).
"license": "license",␊
"lint-staged": "lint-staged",␊
"main": "main",␊
"maintainers": "maintainers",␊
"man": "man",␊
"markdown": "markdown",␊
"mocha": "mocha",␊
Expand Down Expand Up @@ -115,6 +116,7 @@ Generated by [AVA](https://avajs.dev).
"license": "license",␊
"qna": "qna",␊
"author": "author",␊
"maintainers": "maintainers",␊
"contributors": "contributors",␊
"publisher": "publisher",␊
"sideEffects": "sideEffects",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.

0 comments on commit 482c40b

Please sign in to comment.