File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,19 @@ const glob = require("glob");
44const process = require ( "process" ) ;
55
66const findDirectoryPath = ( targetDirectoryName ) => {
7+ console . log ( "targetDirectoryName" , targetDirectoryName ) ;
78 const pathToCheck = path . join ( process . cwd ( ) , targetDirectoryName ) ;
9+ console . log ( "pathToCheck" , process . cwd ( ) , pathToCheck ) ;
810 const folders = fs
911 . readdirSync ( pathToCheck , { withFileTypes : true } )
10- . filter ( ( folder ) => folder . isDirectory ( ) )
12+ . filter (
13+ ( folder ) => folder . isDirectory ( ) && ! folder . name . endsWith ( ".egg-info" )
14+ )
1115 . map ( ( folder ) => ( {
1216 name : folder . name ,
1317 path : path . join ( pathToCheck , folder . name ) ,
1418 } ) ) ;
19+ console . log ( "folders" , folders ) ;
1520 const routesDirectory = path . join ( folders [ 0 ] . path , "routes" ) ;
1621 return [ routesDirectory , folders [ 0 ] . name ] ;
1722} ;
You can’t perform that action at this time.
0 commit comments