mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +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" });
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user