mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-12-23 02:13:46 +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 => {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue