weacpx 0.7.0 → 0.7.1
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/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -45086,7 +45086,7 @@ async function removePluginPackage(input) {
|
|
|
45086
45086
|
// src/cli-update.ts
|
|
45087
45087
|
init_plugin_loader();
|
|
45088
45088
|
init_validate_plugin();
|
|
45089
|
-
var SUCCESSOR = { from: "weacpx", package: "xacpx", minVersion: "0.8.0" };
|
|
45089
|
+
var SUCCESSOR = { from: "weacpx", package: "@ganglion/xacpx", command: "xacpx", minVersion: "0.8.0" };
|
|
45090
45090
|
async function handleUpdateCli(args, deps) {
|
|
45091
45091
|
let all = false;
|
|
45092
45092
|
const explicitTargets = [];
|
|
@@ -45175,7 +45175,7 @@ async function handleUpdateCli(args, deps) {
|
|
|
45175
45175
|
if (successorPackage) {
|
|
45176
45176
|
await stopDaemon();
|
|
45177
45177
|
await selfMigrator({ from: target.name, to: successorPackage, toVersion: target.latestVersion ?? undefined });
|
|
45178
|
-
deps.print(`weacpx 已更名为 ${successorPackage}
|
|
45178
|
+
deps.print(`weacpx 已更名为 ${successorPackage}(命令为 \`${SUCCESSOR.command}\`),已安装 ${successorPackage} ${target.latestVersion ?? "latest"} 并移除旧的 weacpx。今后请使用 \`${SUCCESSOR.command}\` 命令;若此前在后台运行,请用 \`${SUCCESSOR.command} start\` 重新启动。`);
|
|
45179
45179
|
continue;
|
|
45180
45180
|
}
|
|
45181
45181
|
await selfUpdater(target.name);
|
|
@@ -45224,7 +45224,7 @@ function formatTarget(target) {
|
|
|
45224
45224
|
}
|
|
45225
45225
|
async function selectTargets(targets, candidates, input) {
|
|
45226
45226
|
if (input.explicitTarget) {
|
|
45227
|
-
const target = targets.find((entry) => entry.name === input.explicitTarget || entry.kind === "self" && (input.explicitTarget === "weacpx" || input.explicitTarget === entry.successorPackage));
|
|
45227
|
+
const target = targets.find((entry) => entry.name === input.explicitTarget || entry.kind === "self" && (input.explicitTarget === "weacpx" || input.explicitTarget === SUCCESSOR.command || input.explicitTarget === entry.successorPackage));
|
|
45228
45228
|
if (!target)
|
|
45229
45229
|
return { ok: false, message: `没有找到更新项:${input.explicitTarget}`, exitCode: 1 };
|
|
45230
45230
|
if (!target.latestVersion)
|