oasis_test 0.1.24 → 0.1.26
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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50988,7 +50988,7 @@ async function runCli(argv, println = console.log) {
|
|
|
50988
50988
|
}
|
|
50989
50989
|
|
|
50990
50990
|
// src/index.ts
|
|
50991
|
-
var PKG_VERSION = true ? "0.1.
|
|
50991
|
+
var PKG_VERSION = true ? "0.1.26" : "dev";
|
|
50992
50992
|
var OASIS_DIR = path13.join(os8.homedir(), ".oasis");
|
|
50993
50993
|
var CONFIG_FILE = path13.join(OASIS_DIR, "node-config.json");
|
|
50994
50994
|
var PID_FILE = path13.join(OASIS_DIR, "node.pid");
|
|
@@ -51129,7 +51129,7 @@ function selfUpdate() {
|
|
|
51129
51129
|
if (!cfg?.serverUrl) throw new Error("no config \u2014 run `oasis start` first");
|
|
51130
51130
|
const nameArg = cfg.name ? ` --name '${cfg.name.replace(/'/g, "'\\''")}'` : "";
|
|
51131
51131
|
const startCmd = `"$(npm prefix -g)/bin/oasis" start --server-ws '${cfg.serverUrl}'${nameArg}`;
|
|
51132
|
-
const inner = `sleep 2; npm install -g '${PKG_NAME}@latest' && ${startCmd} >> '${LOG_FILE}' 2>&1`;
|
|
51132
|
+
const inner = `sleep 2; npm install -g --prefer-online '${PKG_NAME}@latest' && ${startCmd} >> '${LOG_FILE}' 2>&1`;
|
|
51133
51133
|
const hasSystemd = process.platform === "linux" && (() => {
|
|
51134
51134
|
try {
|
|
51135
51135
|
(0, import_node_child_process12.execSync)("command -v systemd-run", { stdio: "ignore" });
|