cofluxd 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/cofluxd.mjs +1 -1
  2. package/package.json +1 -1
package/cofluxd.mjs CHANGED
@@ -205,7 +205,7 @@ function cmdReload() {
205
205
  function cmdDown() { stopService(); console.log("✓ 已停止"); }
206
206
 
207
207
  async function cmdUpdate(v) {
208
- if (!fs.existsSync(ENV_FILE)) die("尚未安装,先 cofluxd up / onboard");
208
+ if (!fs.existsSync(SETTINGS)) die("尚未安装,先 cofluxd up / onboard");
209
209
  await ensureBinaries({ version: v.version, binDir: v["bin-dir"] });
210
210
  restartService();
211
211
  console.log(`✓ 已更新到 ${v["bin-dir"] ? "本地产物" : v.version} 并重启(supervisor)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cofluxd",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "coflux daemon 管理 CLI:装/起/停/升级 Rust daemon(supervisor + worker)",
5
5
  "type": "module",
6
6
  "bin": {