From f41206eb4bda6f31caf67cecdcaa58df85538a84 Mon Sep 17 00:00:00 2001 From: Maciej Sopylo Date: Fri, 21 Apr 2023 22:38:21 +0200 Subject: [PATCH] core: re-create plugin index on reset Signed-off-by: Maciej Sopylo --- src/core/core.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/core/core.js b/src/core/core.js index cd74217d..228953ca 100644 --- a/src/core/core.js +++ b/src/core/core.js @@ -49,16 +49,7 @@ const semver = require("semver"); class Core { constructor() { this.session = new Session(); - this.props = {}; this.reset(); - this.plugins = new PluginIndex( - this.props, - cachePath, - mainEvent, - log, - settings, - this.session - ); } /** @@ -71,6 +62,14 @@ class Core { os: null, settings: {} }; + this.plugins = new PluginIndex( + this.props, + cachePath, + mainEvent, + log, + settings, + this.session + ); } /**