mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 12:16:21 +03:00
Merge pull request #28 from SVV-team/master
Fix arguments from caching by using fs instead of require
This commit is contained in:
commit
d9d5e21c76
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class Handler {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
const versionJsonPath = this.options.overrides.versionJson || path.join(this.options.directory, `${this.options.version.number}.json`);
|
const versionJsonPath = this.options.overrides.versionJson || path.join(this.options.directory, `${this.options.version.number}.json`);
|
||||||
if (fs.existsSync(versionJsonPath)) {
|
if (fs.existsSync(versionJsonPath)) {
|
||||||
this.version = require(versionJsonPath);
|
this.version = JSON.parse(fs.readFileSync(versionJsonPath));
|
||||||
resolve(this.version);
|
resolve(this.version);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue