mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-25 05:26:22 +03:00
Fix duplicate options on args push
reqiure replaced with fs.readFileSync
This commit is contained in:
parent
06337a8914
commit
0144be7b4c
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