Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Commit 89e8ac3

Browse files
committed
fix: config root finding
1 parent bc21bc4 commit 89e8ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ USAGE
162162
let commandPath = `${commandsDir.replace('./', '')}/${c.id.replace(/:/g, '/')}.js`
163163
if (process.platform !== 'win32') {
164164
// TODO: make this also work on windows
165-
let base = plugin.name === this.config.name ? this.config.root : `${this.config.root}/node_modules/${plugin.name}`
165+
let base = plugin.name === config.name ? config.root : `${config.root}/node_modules/${plugin.name}`
166166
commandPath = require.resolve(base + '/' + commandPath.replace(/\.js$/, ''))
167167
commandPath = commandPath.replace(base + '/', '')
168168
}

0 commit comments

Comments
 (0)