comparison benchmark/bun-http-framework-benchmark/dev/adonis/commands/index.ts @ 185:dfdd66825396

Merged in keep alive changes and mrjunejune changes.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:22:30 -0800
parents a8976a008a9d
children
comparison
equal deleted inserted replaced
182:d6ab5921fedc 185:dfdd66825396
1 import { listDirectoryFiles } from '@adonisjs/core/build/standalone'
2 import Application from '@ioc:Adonis/Core/Application'
3
4 /*
5 |--------------------------------------------------------------------------
6 | Exporting an array of commands
7 |--------------------------------------------------------------------------
8 |
9 | Instead of manually exporting each file from this directory, we use the
10 | helper `listDirectoryFiles` to recursively collect and export an array
11 | of filenames.
12 |
13 | Couple of things to note:
14 |
15 | 1. The file path must be relative from the project root and not this directory.
16 | 2. We must ignore this file to avoid getting into an infinite loop
17 |
18 */
19 export default listDirectoryFiles(__dirname, Application.appRoot, ['./commands/index'])