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)