@adonisjs/core: 6.12.1
AdonisJS Extension: 1.3.1
npm: 10.8.3
node: v20.15.1
The output of running node ace list --json
is the following
[
...,
{
"commandName": "mongo:fresh",
"description": "Clears documents from all collections.",
"help": "",
"namespace": "mongo",
"aliases": [],
"flags": [],
"args": [],
"options": {
"startApp": true
},
"filePath": "mongo_fresh.js"
}
]
According to this line
the custom commands are only registered when theabsoluteFilePath
is set on the command. However, my custom command does not have that.
This line causes the problem: https://github.com/adonisjs/ace/blob/4d5a2ea74e887ff70dd05ef153c0303b2ddeeee3/src/loaders/fs_loader.ts#L99
The file,
which is the absolute path, is used to import the command, but after this function is called, the absolute path does not exist anymore. At least, that's my understanding of it.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too