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 d09e18e commit 88df3b9Copy full SHA for 88df3b9
src/console/lib/console.ts
@@ -38,7 +38,7 @@ figlet('console', (error: any, data: any) => {
38
.filter(m => m.search(/\/lib/g) <= 0)
39
.map(m => ({
40
path: m,
41
- name: m.replace(path.normalize(__dirname).replace('/lib', ''), '').replace('.ts', '').substring(1)
+ name: m.replace(__dirname.split(path.sep).join('/').replace('/lib', ''), '').replace('.ts', '').substring(1)
42
}));
43
44
const commands = files.map(f => require(f.path)[f.name]);
0 commit comments