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

Commit

Permalink
fix: set link plugin type
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 21, 2018
1 parent fb9a61b commit a23329a
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 @@ -249,7 +249,8 @@ export class Config implements IConfig {
const userPJSONPath = path.join(this.dataDir, 'package.json')
const pjson = this.userPJSON = await loadJSON(userPJSONPath)
if (!pjson.oclif) pjson.oclif = {schema: 1}
await this.loadPlugins(userPJSONPath, 'user', pjson.oclif.plugins)
await this.loadPlugins(userPJSONPath, 'user', pjson.oclif.plugins.filter((p: any) => p.type === 'user'))
await this.loadPlugins(userPJSONPath, 'link', pjson.oclif.plugins.filter((p: any) => p.type === 'link'))
} catch (err) {
if (err.code !== 'ENOENT') process.emitWarning(err)
}
Expand Down

0 comments on commit a23329a

Please sign in to comment.