Skip to content

Commit

Permalink
feat: add funding field (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and keithamus committed Dec 2, 2019
1 parent 315d9a9 commit 26f2915
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Expand Up @@ -12,6 +12,7 @@ const sortOrder = [
'homepage',
'bugs',
'repository',
'funding',
'license',
'author',
'contributors',
Expand Down Expand Up @@ -166,6 +167,7 @@ function sortPackageJson(packageJson, options = {}) {
sortSubKey('man');
sortSubKey('directories', ['lib', 'bin', 'man', 'doc', 'example']);
sortSubKey('repository', ['type', 'url']);
sortSubKey('funding', ['type', 'url']);
sortSubKey('scripts', compareScriptKeys);
sortSubKey('betterScripts', compareScriptKeys);
sortSubKey('commitlint');
Expand Down

0 comments on commit 26f2915

Please sign in to comment.