File tree 5 files changed +7
-6
lines changed
5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,6 @@ const fields = [
180
180
over : onArray ( contributors => contributors . map ( sortPeopleObject ) ) ,
181
181
} ,
182
182
/* vscode */ { key : 'publisher' } ,
183
- { key : 'files' , over : uniq } ,
184
183
{ key : 'sideEffects' } ,
185
184
{ key : 'type' } ,
186
185
{ key : 'exports' , over : sortObject } ,
@@ -201,6 +200,7 @@ const fields = [
201
200
{ key : 'bin' , over : sortObject } ,
202
201
{ key : 'man' } ,
203
202
{ key : 'directories' , over : sortDirectories } ,
203
+ { key : 'files' , over : uniq } ,
204
204
{ key : 'workspaces' } ,
205
205
// node-pre-gyp https://www.npmjs.com/package/node-pre-gyp#1-add-new-entries-to-your-packagejson
206
206
{
Original file line number Diff line number Diff line change 17
17
},
18
18
"license" : " MIT" ,
19
19
"author" :
" Keith Cirkel <[email protected] > (http://keithcirkel.co.uk/)" ,
20
+ "main" : " index.js" ,
21
+ "types" : " index.d.ts" ,
22
+ "bin" : " cli.js" ,
20
23
"files" : [
21
24
" index.js" ,
22
25
" index.d.ts" ,
23
26
" cli.js"
24
27
],
25
- "main" : " index.js" ,
26
- "types" : " index.d.ts" ,
27
- "bin" : " cli.js" ,
28
28
"scripts" : {
29
29
"lint" : " eslint ." ,
30
30
"semantic-release" : " semantic-release" ,
31
31
"sort-package-json" : " node cli.js package.json --check" ,
32
32
"test" : " ava" ,
33
- "test-coverage" : " nyc ava"
33
+ "test-coverage" : " nyc ava" ,
34
+ "update-snapshot" : " ava -u && node cli.js package.json"
34
35
},
35
36
"husky" : {
36
37
"hooks" : {
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ Generated by [AVA](https://ava.li).
112
112
"author": "author",␊
113
113
"contributors": "contributors",␊
114
114
"publisher": "publisher",␊
115
- "files": "files",␊
116
115
"sideEffects": "sideEffects",␊
117
116
"type": "type",␊
118
117
"exports": "exports",␊
@@ -133,6 +132,7 @@ Generated by [AVA](https://ava.li).
133
132
"bin": "bin",␊
134
133
"man": "man",␊
135
134
"directories": "directories",␊
135
+ "files": "files",␊
136
136
"workspaces": "workspaces",␊
137
137
"binary": "binary",␊
138
138
"scripts": "scripts",␊
You can’t perform that action at this time.
0 commit comments