Skip to content

Commit 88df3b9

Browse files
committed
Fix console command name
1 parent d09e18e commit 88df3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/console/lib/console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ figlet('console', (error: any, data: any) => {
3838
.filter(m => m.search(/\/lib/g) <= 0)
3939
.map(m => ({
4040
path: m,
41-
name: m.replace(path.normalize(__dirname).replace('/lib', ''), '').replace('.ts', '').substring(1)
41+
name: m.replace(__dirname.split(path.sep).join('/').replace('/lib', ''), '').replace('.ts', '').substring(1)
4242
}));
4343

4444
const commands = files.map(f => require(f.path)[f.name]);

0 commit comments

Comments
 (0)