mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Hotfix installer wiping package.json
Fix the installer wiping the package.json file due to a call to outputFile that needed to target the original file being incorrectly changed to safeOutputFile.
This commit is contained in:
1 parent
bcb2365c9a
commit
949ba708ea
2 files changed
+2
-2
No files matched your search
@@ -183,7 +183,7 @@ async function validateNotRoot(args) {
|
||||
|
||||
async function installClusterio(mode, plugins) {
|
||||
try {
|
||||
await safeOutputFile("package.json", JSON.stringify({
|
||||
await fs.outputFile("package.json", JSON.stringify({
|
||||
name: "clusterio-install",
|
||||
private: true,
|
||||
}, null, 2), { flag: "wx" });
|
||||
|
||||
Reference in new issue
Block a user