Skip to content

Commit 6acee24

Browse files
Nathan MahdaviNathan Mahdavi
Nathan Mahdavi
authored and
Nathan Mahdavi
committed
fix path issue
1 parent 2a69efd commit 6acee24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
const program = require('commander');
22
const fs = require('fs');
3+
const path = require('path');
34

45
function getMappedCommands() {
5-
return fs.readdirSync('./commands').reduce((commands, command) => {
6+
return fs.readdirSync(path.resolve(__dirname, './commands')).reduce((commands, command) => {
67
const commandWithoutExtension = command.replace('.js', '');
78

89
return Object.assign(commands, {

0 commit comments

Comments
 (0)