Skip to content

Commit

Permalink
fix: correct type of man os cpu field (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and keithamus committed Jan 3, 2020
1 parent 90891fa commit bbbed6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const fields = [
{ key: 'examplestyle' },
{ key: 'assets' },
{ key: 'bin', over: sortObject },
{ key: 'man', over: sortObject },
{ key: 'man' },
{ key: 'directories', over: sortDirectories },
{ key: 'workspaces' },
// node-pre-gyp https://www.npmjs.com/package/node-pre-gyp#1-add-new-entries-to-your-packagejson
Expand Down Expand Up @@ -149,8 +149,8 @@ const fields = [
{ key: 'resolutions', over: sortObject },
{ key: 'engines', over: sortObject },
{ key: 'engineStrict', over: sortObject },
{ key: 'os', over: sortObject },
{ key: 'cpu', over: sortObject },
{ key: 'os' },
{ key: 'cpu' },
{ key: 'preferGlobal', over: sortObject },
{ key: 'publishConfig', over: sortObject },
]
Expand Down
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ assert.deepStrictEqual(
for (const field of [
'exports',
'bin',
'man',
'commitlint',
'lint-staged',
'config',
Expand All @@ -206,8 +205,6 @@ for (const field of [
'resolutions',
'engines',
'engineStrict',
'os',
'cpu',
'preferGlobal',
'publishConfig',
]) {
Expand Down Expand Up @@ -251,12 +248,15 @@ for (const field of [
'example',
'examplestyle',
'assets',
'man',
'workspaces',
'pre-commit',
'browserslist',
'eslintIgnore',
'stylelint',
'flat',
'os',
'cpu',
]) {
testField(field, [
{
Expand Down

0 comments on commit bbbed6a

Please sign in to comment.