File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,11 +115,17 @@ async.waterfall(
115115
116116 folders . forEach ( function ( folder ) {
117117 if ( ! / ^ \. / ig. test ( folder ) ) {
118- var modulesPackageJson = path . join ( seed . moduleDir , seed . modulePath , folder )
119- , stats = fs . statSync ( modulesPackageJson ) ;
120-
121- if ( stats . isDirectory ( ) && fs . existsSync ( modulesPackageJson ) ) {
122- modulesPackageJson = require ( path . join ( modulesPackageJson , 'package.json' ) ) ;
118+ var modulesPackageJsonPath = path . join ( seed . moduleDir , seed . modulePath , folder )
119+ , stats = fs . statSync ( modulesPackageJsonPath )
120+ , modulesPackageJson = path . join ( modulesPackageJsonPath , 'package.json' ) ;
121+
122+ if ( stats . isDirectory ( ) && fs . existsSync ( modulesPackageJsonPath ) && fs . existsSync ( modulesPackageJson ) ) {
123+ modulesPackageJson = require ( modulesPackageJson ) ;
124+ } else {
125+ modulesPackageJson = {
126+ version : 'default' ,
127+ dependencies : { }
128+ }
123129 }
124130
125131 modules . push ( {
Original file line number Diff line number Diff line change 11{
22 "name" : " cleverstack-cli" ,
33 "description" : " Command line interface for CleverStack" ,
4- "version" : " 1.0.6 " ,
4+ "version" : " 1.0.7 " ,
55 "main" : " ./index.js" ,
66 "author" : {
77 "name" : " CleverStack" ,
You can’t perform that action at this time.
0 commit comments