Skip to content

Commit

Permalink
fix: order of dependencies (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and keithamus committed Jan 3, 2020
1 parent bbbed6a commit c01cbc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ const fields = [
{ key: 'jest', over: sortObject },
{ key: 'mocha', over: sortObject },
{ key: 'nyc', over: sortObject },
{ key: 'resolutions', over: sortObject },
{ key: 'dependencies', over: sortObject },
{ key: 'devDependencies', over: sortObject },
{ key: 'peerDependencies', over: sortObject },
{ key: 'optionalDependencies', over: sortObject },
{ key: 'bundledDependencies', over: sortArray },
{ key: 'bundleDependencies', over: sortArray },
{ key: 'optionalDependencies', over: sortObject },
{ key: 'flat' },
{ key: 'resolutions', over: sortObject },
{ key: 'engines', over: sortObject },
{ key: 'engineStrict', over: sortObject },
{ key: 'os' },
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ for (const field of [
'jest',
'mocha',
'nyc',
'resolutions',
'engines',
'engineStrict',
'preferGlobal',
Expand Down Expand Up @@ -499,8 +498,9 @@ testField('betterScripts', [
},
])

// dependencies
// `resolutions` and `dependencies`
for (const field of [
'resolutions',
'dependencies',
'devDependencies',
'peerDependencies',
Expand Down

0 comments on commit c01cbc7

Please sign in to comment.