Skip to content

Commit 26f2915

Browse files
fiskerkeithamus
authored andcommitted
feat: add funding field (#87)
1 parent 315d9a9 commit 26f2915

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const sortOrder = [
1212
'homepage',
1313
'bugs',
1414
'repository',
15+
'funding',
1516
'license',
1617
'author',
1718
'contributors',
@@ -166,6 +167,7 @@ function sortPackageJson(packageJson, options = {}) {
166167
sortSubKey('man');
167168
sortSubKey('directories', ['lib', 'bin', 'man', 'doc', 'example']);
168169
sortSubKey('repository', ['type', 'url']);
170+
sortSubKey('funding', ['type', 'url']);
169171
sortSubKey('scripts', compareScriptKeys);
170172
sortSubKey('betterScripts', compareScriptKeys);
171173
sortSubKey('commitlint');

0 commit comments

Comments
 (0)