mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
19 lines
701 B
TypeScript
19 lines
701 B
TypeScript
import { listDirectoryFiles } from '@adonisjs/ace'
|
|
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.
|
|
|
|
|
*/
|
|
export default listDirectoryFiles(__dirname, Application.appRoot, ['./commands/index.js'])
|