comparison benchmark/bun-http-framework-benchmark/dev/adonis/commands/index.ts @ 183:a8976a008a9d

[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 21:19:08 -0800
parents
children
comparison
equal deleted inserted replaced
179:8d17f6e6e290 183:a8976a008a9d
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'])