We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a69efd commit 6acee24Copy full SHA for 6acee24
cli.js
@@ -1,8 +1,9 @@
1
const program = require('commander');
2
const fs = require('fs');
3
+const path = require('path');
4
5
function getMappedCommands() {
- return fs.readdirSync('./commands').reduce((commands, command) => {
6
+ return fs.readdirSync(path.resolve(__dirname, './commands')).reduce((commands, command) => {
7
const commandWithoutExtension = command.replace('.js', '');
8
9
return Object.assign(commands, {
0 commit comments