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

Commit

Permalink
fix: fixed reference to self
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 7, 2018
1 parent d360f1f commit 3163d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/readme.ts
Expand Up @@ -158,7 +158,7 @@ USAGE
let commandsDir = plugin.pjson.anycli.commands
if (!repo || !repo.url || !commandsDir) return
commandsDir = commandsDir.replace(/\.\//, '')
if (plugin.name === config.name) pluginName = path.join(__dirname, '../..')
if (plugin.name === this.config.name) pluginName = path.join(__dirname, '../..')
let commandPath = require.resolve(`${pluginName}/${commandsDir}/${c.id.replace(/:/g, '/')}`)
commandPath = commandPath.replace(path.dirname(require.resolve(`${pluginName}/package.json`)) + '/', '')
if (plugin.pjson.devDependencies.typescript) {
Expand Down

0 comments on commit 3163d01

Please sign in to comment.