Skip to content

Commit

Permalink
refactor(core): restores parent before initializing scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 17, 2019
1 parent 9985cfd commit a2bb977
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2bb977

Please sign in to comment.