aboutsummaryrefslogtreecommitdiffstats
path: root/commands/index.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-02-10 18:19:14 -0700
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-13 06:59:44 +0530
commit7584d2d7a7110aef0331ebfa178b2295842c59fa (patch)
tree900cd71237e6231b57936fcce77ff229cd459041 /commands/index.ts
parentupgrade recipes submodule (diff)
downloadferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz
ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst
ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip
refactor: project maintenance
- work in progress
Diffstat (limited to 'commands/index.ts')
-rw-r--r--commands/index.ts21
1 files changed, 0 insertions, 21 deletions
diff --git a/commands/index.ts b/commands/index.ts
deleted file mode 100644
index d2ad5fb..0000000
--- a/commands/index.ts
+++ /dev/null
@@ -1,21 +0,0 @@
1import { listDirectoryFiles } from '@adonisjs/core/build/standalone';
2import 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*/
19export default listDirectoryFiles(__dirname, Application.appRoot, [
20 './commands/index',
21]);