File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,15 @@ function install(src) {
76
76
else
77
77
return parts [ 0 ] ;
78
78
} ) . join ( ' ' ) . trim ( ) ;
79
- if ( deps . length === 0 ) return ;
80
79
81
- var cmd = 'npm install --save ' + deps ;
82
- log . debug ( cmd ) ;
83
- require ( 'child_process' ) . execSync ( cmd , {
84
- cwd : path . resolve ( __dirname , '../..' )
85
- } ) ;
80
+ if ( deps . length > 0 ) {
81
+ var cmd = 'npm install --save ' + deps ;
82
+ log . debug ( cmd ) ;
83
+ require ( 'child_process' ) . execSync ( cmd , {
84
+ cwd : path . resolve ( __dirname , '../..' )
85
+ } ) ;
86
+ }
87
+ plugin . help ( ) ;
86
88
} ) ;
87
89
}
88
90
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ Plugin.prototype.setNext = function(next) {
25
25
this . next = next ;
26
26
} ;
27
27
28
+ Plugin . prototype . help = function ( ) { } ;
29
+
28
30
Plugin . plugins = [ ] ;
29
31
30
32
Plugin . init = function ( head ) {
You can’t perform that action at this time.
0 commit comments