From a2bb977b5d8b2767167bf121e285cf611b657d98 Mon Sep 17 00:00:00 2001 From: Rafa Mel Date: Fri, 17 May 2019 06:50:24 +0200 Subject: [PATCH] refactor(core): restores parent before initializing scopes --- src/core/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/index.ts b/src/core/index.ts index d5f82d1..5df3f8d 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -126,6 +126,7 @@ export function getCore(options: ICliOptions, parent?: ICore): ICore { }); if (scope) { + this.restore(); const core = await getCore( { ...options, file: null, directory: scope.directory }, this