File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -76,13 +76,15 @@ function install(src) {
7676 else
7777 return parts [ 0 ] ;
7878 } ) . join ( ' ' ) . trim ( ) ;
79- if ( deps . length === 0 ) return ;
8079
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 ( ) ;
8688 } ) ;
8789}
8890
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ Plugin.prototype.setNext = function(next) {
2525 this . next = next ;
2626} ;
2727
28+ Plugin . prototype . help = function ( ) { } ;
29+
2830Plugin . plugins = [ ] ;
2931
3032Plugin . init = function ( head ) {
You can’t perform that action at this time.
0 commit comments