Skip to content

Commit 092b9d7

Browse files
fiskerkeithamus
authored andcommittedDec 3, 2019
feat: add exports field (#88)
1 parent 8b2bac4 commit 092b9d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎index.js

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const sortOrder = [
1919
'files',
2020
'sideEffects',
2121
'type',
22+
'exports',
2223
'main',
2324
'umd:main',
2425
'jsdelivr',
@@ -164,6 +165,7 @@ function sortPackageJson(packageJson, options = {}) {
164165
sortSubKey('bugs', ['url', 'email']);
165166
sortSubKey('license', ['type', 'url']);
166167
sortSubKey('author', ['name', 'email', 'url']);
168+
sortSubKey('exports');
167169
sortSubKey('bin');
168170
sortSubKey('man');
169171
sortSubKey('directories', ['lib', 'bin', 'man', 'doc', 'example']);

0 commit comments

Comments
 (0)
Please sign in to comment.