Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: skip loading existing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 21, 2018
1 parent bf888d1 commit f6d5a76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ export class Config implements IConfig {
...s3.templates,
}

await this.loadDevPlugins()
await this.loadUserPlugins()
await this.loadDevPlugins()
await this.loadCorePlugins()
debug('config done')
}
Expand Down Expand Up @@ -427,6 +427,7 @@ export class Config implements IConfig {
}
let instance = new Plugin.Plugin(opts)
await instance.load()
if (this.plugins.find(p => p.name === instance.name)) return
this.plugins.push(instance)
await this.loadPlugins(instance.root, type, instance.pjson.oclif.plugins || [])
} catch (err) {
Expand Down

0 comments on commit f6d5a76

Please sign in to comment.