@@ -31,7 +31,7 @@ export class CommandHelper {
3131 subCommandGroups : 0
3232 } ;
3333
34- const modulesFolder = path . join ( process . cwd ( ) , ".build" , " src", "modules" ) ;
34+ const modulesFolder = path . join ( process . cwd ( ) , "src" , "modules" ) ;
3535 if ( ! fs . existsSync ( modulesFolder ) ) {
3636 console . warn ( "Modules folder does not exist." . red ) ;
3737 return ;
@@ -57,7 +57,7 @@ export class CommandHelper {
5757
5858 // Load main commands
5959 if ( fs . existsSync ( commandDirs . commands ) ) {
60- const commandFiles = getFilesRecursively ( commandDirs . commands , [ ".js " ] ) ;
60+ const commandFiles = getFilesRecursively ( commandDirs . commands , [ ".ts " ] ) ;
6161
6262 for ( const filePath of commandFiles ) {
6363 const relativePath = path . relative ( commandDirs . commands , filePath ) ;
@@ -79,7 +79,7 @@ export class CommandHelper {
7979
8080 // Load context menu commands
8181 if ( fs . existsSync ( commandDirs . contextMenus ) ) {
82- const contextCommandFiles = getFilesRecursively ( commandDirs . contextMenus , [ ".js " ] ) ;
82+ const contextCommandFiles = getFilesRecursively ( commandDirs . contextMenus , [ ".ts " ] ) ;
8383 for ( const filePath of contextCommandFiles ) {
8484 try {
8585 const module = await import ( pathToFileURL ( filePath ) . href ) ;
@@ -95,12 +95,12 @@ export class CommandHelper {
9595
9696 // Count subCommands and subCommandGroups (für Stats)
9797 if ( fs . existsSync ( commandDirs . subCommands ) ) {
98- const subCommandFiles = getFilesRecursively ( commandDirs . subCommands , [ ".js " ] ) ;
98+ const subCommandFiles = getFilesRecursively ( commandDirs . subCommands , [ ".ts " ] ) ;
9999 stats . subCommands += subCommandFiles . length ;
100100 }
101101
102102 if ( fs . existsSync ( commandDirs . subCommandGroups ) ) {
103- const subCommandGroupFiles = getFilesRecursively ( commandDirs . subCommandGroups , [ ".js " ] ) ;
103+ const subCommandGroupFiles = getFilesRecursively ( commandDirs . subCommandGroups , [ ".ts " ] ) ;
104104 stats . subCommandGroups += subCommandGroupFiles . length ;
105105 }
106106 }
@@ -276,7 +276,7 @@ export class CommandHelper {
276276 subCommandGroups : 0
277277 } ;
278278
279- const modulesFolder = path . join ( process . cwd ( ) , ".build" , " src", "modules" ) ;
279+ const modulesFolder = path . join ( process . cwd ( ) , "src" , "modules" ) ;
280280 if ( ! fs . existsSync ( modulesFolder ) ) {
281281 console . warn ( "Modules folder does not exist." . red ) ;
282282 return ;
@@ -303,7 +303,7 @@ export class CommandHelper {
303303
304304 // Load main commands
305305 if ( fs . existsSync ( commandDirs . commands ) ) {
306- const commandFiles = getFilesRecursively ( commandDirs . commands , [ ".js " ] ) ;
306+ const commandFiles = getFilesRecursively ( commandDirs . commands , [ ".ts " ] ) ;
307307
308308 for ( const filePath of commandFiles ) {
309309 const relativePath = path . relative ( commandDirs . commands , filePath ) ;
@@ -325,7 +325,7 @@ export class CommandHelper {
325325
326326 // Load userInstall commands
327327 if ( fs . existsSync ( commandDirs . userInstall ) ) {
328- const userCommandFiles = getFilesRecursively ( commandDirs . userInstall , [ ".js " ] ) ;
328+ const userCommandFiles = getFilesRecursively ( commandDirs . userInstall , [ ".ts " ] ) ;
329329 for ( const filePath of userCommandFiles ) {
330330 try {
331331 const module = await import ( pathToFileURL ( filePath ) . href ) ;
@@ -341,7 +341,7 @@ export class CommandHelper {
341341
342342 // Load context menu commands
343343 if ( fs . existsSync ( commandDirs . contextMenus ) ) {
344- const contextCommandFiles = getFilesRecursively ( commandDirs . contextMenus , [ ".js " ] ) ;
344+ const contextCommandFiles = getFilesRecursively ( commandDirs . contextMenus , [ ".ts " ] ) ;
345345 for ( const filePath of contextCommandFiles ) {
346346 try {
347347 const module = await import ( pathToFileURL ( filePath ) . href ) ;
@@ -357,12 +357,12 @@ export class CommandHelper {
357357
358358 // Count subCommands and subCommandGroups (für Stats)
359359 if ( fs . existsSync ( commandDirs . subCommands ) ) {
360- const subCommandFiles = getFilesRecursively ( commandDirs . subCommands , [ ".js " ] ) ;
360+ const subCommandFiles = getFilesRecursively ( commandDirs . subCommands , [ ".ts " ] ) ;
361361 stats . subCommands += subCommandFiles . length ;
362362 }
363363
364364 if ( fs . existsSync ( commandDirs . subCommandGroups ) ) {
365- const subCommandGroupFiles = getFilesRecursively ( commandDirs . subCommandGroups , [ ".js " ] ) ;
365+ const subCommandGroupFiles = getFilesRecursively ( commandDirs . subCommandGroups , [ ".ts " ] ) ;
366366 stats . subCommandGroups += subCommandGroupFiles . length ;
367367 }
368368 }
0 commit comments