Mercurial
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/benchmark/bun-http-framework-benchmark/dev/adonis/commands/index.ts Fri Jan 23 21:19:08 2026 -0800 @@ -0,0 +1,19 @@ +import { listDirectoryFiles } from '@adonisjs/core/build/standalone' +import Application from '@ioc:Adonis/Core/Application' + +/* +|-------------------------------------------------------------------------- +| Exporting an array of commands +|-------------------------------------------------------------------------- +| +| Instead of manually exporting each file from this directory, we use the +| helper `listDirectoryFiles` to recursively collect and export an array +| of filenames. +| +| Couple of things to note: +| +| 1. The file path must be relative from the project root and not this directory. +| 2. We must ignore this file to avoid getting into an infinite loop +| +*/ +export default listDirectoryFiles(__dirname, Application.appRoot, ['./commands/index'])