From 0144be7b4cff05fdb9f1b4a1c570ffc723c94cbd Mon Sep 17 00:00:00 2001 From: SVV-team <48009651+SVV-team@users.noreply.github.com> Date: Fri, 1 Nov 2019 17:19:13 +0200 Subject: [PATCH] Fix duplicate options on args push reqiure replaced with fs.readFileSync --- components/handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/handler.js b/components/handler.js index 453021c..58bd03b 100644 --- a/components/handler.js +++ b/components/handler.js @@ -101,7 +101,7 @@ class Handler { return new Promise(resolve => { const versionJsonPath = this.options.overrides.versionJson || path.join(this.options.directory, `${this.options.version.number}.json`); if (fs.existsSync(versionJsonPath)) { - this.version = require(versionJsonPath); + this.version = JSON.parse(fs.readFileSync(versionJsonPath)); resolve(this.version); return; }