magala 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of magala might be problematic. Click here for more details.
- package/bin/magala.js +7 -1
- package/package.json +1 -1
package/bin/magala.js
CHANGED
|
@@ -9,7 +9,7 @@ const { execSync } = require("child_process");
|
|
|
9
9
|
const AdmZip = require("adm-zip");
|
|
10
10
|
|
|
11
11
|
const ZIP_URL =
|
|
12
|
-
"https://pub-
|
|
12
|
+
"https://pub-03d748fe915c431ba9a5af0fab1aaec1.r2.dev/msh/msh.zip";
|
|
13
13
|
|
|
14
14
|
const rootDir = process.cwd();
|
|
15
15
|
const installDir = path.join(rootDir, "msh");
|
|
@@ -40,6 +40,12 @@ async function installAndRun() {
|
|
|
40
40
|
zip.extractAllTo(rootDir, true);
|
|
41
41
|
|
|
42
42
|
fs.unlinkSync(zipPath);
|
|
43
|
+
|
|
44
|
+
console.log("Installing server dependencies...");
|
|
45
|
+
execSync("npm install", {
|
|
46
|
+
cwd: installDir,
|
|
47
|
+
stdio: "inherit",
|
|
48
|
+
});
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
console.log("Starting server...");
|