Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: keithamus/sort-package-json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.45.0
Choose a base ref
...
head repository: keithamus/sort-package-json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.46.0
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Sep 16, 2020

  1. feat: add maintainers field (#202)

    * Add `maintainers`
    
    * Update snapshots
    fregante authored Sep 16, 2020
    Copy the full SHA
    482c40b View commit details
Showing with 6 additions and 0 deletions.
  1. +4 −0 index.js
  2. BIN tests/snapshots/cli.js.snap
  3. +2 −0 tests/snapshots/main.js.md
  4. BIN tests/snapshots/main.js.snap
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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)),
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
@@ -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",␊
@@ -115,6 +116,7 @@ Generated by [AVA](https://avajs.dev).
"license": "license",␊
"qna": "qna",␊
"author": "author",␊
"maintainers": "maintainers",␊
"contributors": "contributors",␊
"publisher": "publisher",␊
"sideEffects": "sideEffects",␊
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.