From 2d3ae8e7a1b159211b3751e4ca2dd2340812ccc3 Mon Sep 17 00:00:00 2001 From: Philipe Navarro Date: Thu, 27 Dec 2018 11:04:37 -0500 Subject: [PATCH] fix: undefined children --- src/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.ts b/src/config.ts index da0f11c1..8923c649 100644 --- a/src/config.ts +++ b/src/config.ts @@ -437,6 +437,7 @@ export class Config implements IConfig { this.plugins.push(instance) if (parent) { instance.parent = parent + if (!parent.children) parent.children = [] parent.children.push(instance) } await this.loadPlugins(instance.root, type, instance.pjson.oclif.plugins || [], instance)