From a23329a319f78625e25f2eb22f7ec32576bfd1ca Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Fri, 20 Apr 2018 21:38:52 -0700 Subject: [PATCH] fix: set link plugin type --- src/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 8c831ae2..8e5e4160 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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) }