Merge pull request #28 from SVV-team/master

Fix arguments from caching by using fs instead of require
This commit is contained in:
Pierce 2019-11-01 20:10:18 -04:00 committed by GitHub
commit d9d5e21c76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}