Skip to content

Commit bbbed6a

Browse files
fiskerkeithamus
authored andcommittedJan 3, 2020
fix: correct type of man os cpu field (#114)
1 parent 90891fa commit bbbed6a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const fields = [
105105
{ key: 'examplestyle' },
106106
{ key: 'assets' },
107107
{ key: 'bin', over: sortObject },
108-
{ key: 'man', over: sortObject },
108+
{ key: 'man' },
109109
{ key: 'directories', over: sortDirectories },
110110
{ key: 'workspaces' },
111111
// node-pre-gyp https://www.npmjs.com/package/node-pre-gyp#1-add-new-entries-to-your-packagejson
@@ -149,8 +149,8 @@ const fields = [
149149
{ key: 'resolutions', over: sortObject },
150150
{ key: 'engines', over: sortObject },
151151
{ key: 'engineStrict', over: sortObject },
152-
{ key: 'os', over: sortObject },
153-
{ key: 'cpu', over: sortObject },
152+
{ key: 'os' },
153+
{ key: 'cpu' },
154154
{ key: 'preferGlobal', over: sortObject },
155155
{ key: 'publishConfig', over: sortObject },
156156
]

‎test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ assert.deepStrictEqual(
189189
for (const field of [
190190
'exports',
191191
'bin',
192-
'man',
193192
'commitlint',
194193
'lint-staged',
195194
'config',
@@ -206,8 +205,6 @@ for (const field of [
206205
'resolutions',
207206
'engines',
208207
'engineStrict',
209-
'os',
210-
'cpu',
211208
'preferGlobal',
212209
'publishConfig',
213210
]) {
@@ -251,12 +248,15 @@ for (const field of [
251248
'example',
252249
'examplestyle',
253250
'assets',
251+
'man',
254252
'workspaces',
255253
'pre-commit',
256254
'browserslist',
257255
'eslintIgnore',
258256
'stylelint',
259257
'flat',
258+
'os',
259+
'cpu',
260260
]) {
261261
testField(field, [
262262
{

0 commit comments

Comments
 (0)
Please sign in to comment.