File tree 2 files changed +17
-12
lines changed
2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = (helpMessage, options) => {
20
20
helpMessage = '' ;
21
21
}
22
22
23
- options = Object . assign ( {
23
+ options = {
24
24
pkg : readPkgUp . sync ( {
25
25
cwd : parentDir ,
26
26
normalize : false
@@ -32,8 +32,9 @@ module.exports = (helpMessage, options) => {
32
32
autoHelp : true ,
33
33
autoVersion : true ,
34
34
booleanDefault : false ,
35
- hardRejection : true
36
- } , options ) ;
35
+ hardRejection : true ,
36
+ ...options
37
+ } ;
37
38
38
39
if ( options . hardRejection ) {
39
40
hardRejection ( ) ;
@@ -50,9 +51,10 @@ module.exports = (helpMessage, options) => {
50
51
options . flags
51
52
) : options . flags ;
52
53
53
- let minimistoptions = Object . assign ( {
54
- arguments : options . input
55
- } , minimistFlags ) ;
54
+ let minimistoptions = {
55
+ arguments : options . input ,
56
+ ...minimistFlags
57
+ } ;
56
58
57
59
minimistoptions = decamelizeKeys ( minimistoptions , '-' , { exclude : [ 'stopEarly' , '--' ] } ) ;
58
60
@@ -63,7 +65,10 @@ module.exports = (helpMessage, options) => {
63
65
minimistoptions = buildMinimistOptions ( minimistoptions ) ;
64
66
65
67
if ( minimistoptions [ '--' ] ) {
66
- minimistoptions . configuration = Object . assign ( { } , minimistoptions . configuration , { 'populate--' : true } ) ;
68
+ minimistoptions . configuration = {
69
+ ...minimistoptions . configuration ,
70
+ 'populate--' : true
71
+ } ;
67
72
}
68
73
69
74
const { pkg} = options ;
Original file line number Diff line number Diff line change 10
10
"url" : " sindresorhus.com"
11
11
},
12
12
"engines" : {
13
- "node" : " >=6 "
13
+ "node" : " >=8 "
14
14
},
15
15
"scripts" : {
16
16
"test" : " xo && ava"
38
38
" console"
39
39
],
40
40
"dependencies" : {
41
- "camelcase-keys" : " ^4 .0.0" ,
41
+ "camelcase-keys" : " ^5 .0.0" ,
42
42
"decamelize-keys" : " ^1.0.0" ,
43
43
"hard-rejection" : " ^1.0.0" ,
44
44
"minimist-options" : " ^3.0.1" ,
45
45
"normalize-package-data" : " ^2.3.4" ,
46
- "read-pkg-up" : " ^3 .0.0" ,
46
+ "read-pkg-up" : " ^4 .0.0" ,
47
47
"redent" : " ^2.0.0" ,
48
48
"trim-newlines" : " ^2.0.0" ,
49
- "yargs-parser" : " ^10 .0.0"
49
+ "yargs-parser" : " ^11 .0.0"
50
50
},
51
51
"devDependencies" : {
52
52
"ava" : " ^0.25.0" ,
53
- "execa" : " ^0.10 .0" ,
53
+ "execa" : " ^1.0 .0" ,
54
54
"indent-string" : " ^3.0.0" ,
55
55
"xo" : " ^0.23.0"
56
56
},
You can’t perform that action at this time.
0 commit comments