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:
Hornwitser committed 2022-07-20 14:40:41 +02:00
1 parent bcb2365c9a
commit 949ba708ea
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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" });
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Installer for clusterio",
"author": "Hornwitser",
"license": "MIT",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.13b",
"main": "create.js",
"bin": {
"clusteriocreate": "./create.js"