mine-auto-cli 2.4.0 → 2.4.1-beta.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +95 -100
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -154,9 +154,9 @@ auto check
154
154
 
155
155
  ![img](./assets/check.png)
156
156
 
157
- #### 生成依赖注释文件
157
+ ### 生成依赖注释文件
158
158
 
159
- - 可以在工作目录生成 `directory.md` 文件
159
+ - 可以在工作目录生成 `comment.md` 文件
160
160
 
161
161
  ```sh
162
162
  auto comment
package/dist/index.js CHANGED
@@ -1,27 +1,27 @@
1
- import ee from "update-notifier";
2
- import a from "chalk";
3
1
  import { program as g } from "commander";
4
- import { readFileSync as h, writeFileSync as v, existsSync as j, readdirSync as te } from "fs";
5
- import { join as S, resolve as w } from "path";
2
+ import a from "chalk";
3
+ import { readFileSync as h, writeFileSync as v, existsSync as b, readdirSync as ee } from "fs";
4
+ import { join as w, resolve as j } from "path";
6
5
  import R from "log-symbols";
7
- import ne from "ora";
8
- import { execSync as oe } from "child_process";
9
- import se from "js-yaml";
10
- import re from "strip-json-comments";
11
- import ce from "pacote";
12
- const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/index.js", le = "module", pe = {
6
+ import te from "ora";
7
+ import { execSync as ne } from "child_process";
8
+ import oe from "js-yaml";
9
+ import se from "strip-json-comments";
10
+ import re from "pacote";
11
+ import ce from "update-notifier";
12
+ const G = "mine-auto-cli", _ = "2.4.1-beta.1", ie = "./dist/index.js", ae = "./dist/index.js", le = "module", pe = {
13
13
  auto: "bin/mine-auto-cli.js"
14
14
  }, me = {
15
15
  name: "biaov",
16
16
  email: "biaov@qq.com",
17
17
  url: "https://biaov.cn"
18
- }, ge = "一个将多个命令简化成一个命令的工具 😆", de = {
18
+ }, ge = "一个将多个命令简化成一个命令的工具 😆", ue = {
19
19
  start: "npm run dev",
20
20
  dev: "npm run build -- --watch",
21
21
  build: "vite build",
22
22
  prettier: "prettier --write '**/*.{js,ts,md,json}'",
23
23
  tag: "node scripts/tag"
24
- }, ue = {
24
+ }, de = {
25
25
  registry: "https://registry.npmjs.org/",
26
26
  "engine-strict": !0,
27
27
  provenance: !0
@@ -42,7 +42,7 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
42
42
  name: "biaov",
43
43
  email: "biaov@qq.com"
44
44
  }
45
- ], we = {
45
+ ], ke = {
46
46
  chalk: "^5.3.0",
47
47
  commander: "^12.0.0",
48
48
  "js-yaml": "^4.1.0",
@@ -51,7 +51,7 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
51
51
  pacote: "^18.0.6",
52
52
  "strip-json-comments": "^5.0.1",
53
53
  "update-notifier": "^7.0.0"
54
- }, ke = {
54
+ }, we = {
55
55
  "@types/js-yaml": "^4.0.9",
56
56
  "@types/node": "^20.12.12",
57
57
  "@types/pacote": "^11.1.8",
@@ -69,8 +69,8 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
69
69
  bin: pe,
70
70
  author: me,
71
71
  description: ge,
72
- scripts: de,
73
- publishConfig: ue,
72
+ scripts: ue,
73
+ publishConfig: de,
74
74
  engines: fe,
75
75
  keywords: he,
76
76
  repository: ye,
@@ -78,9 +78,9 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
78
78
  bugs: ve,
79
79
  license: be,
80
80
  contributors: je,
81
- dependencies: we,
82
- devDependencies: ke
83
- }, u = (e) => {
81
+ dependencies: ke,
82
+ devDependencies: we
83
+ }, d = (e) => {
84
84
  console.log(`${R.success} ${a.green("SUCCESS")} ${e}`);
85
85
  }, J = (e) => {
86
86
  console.log(`${G} ${R.error} ${a.red("ERROR")} ${e}`);
@@ -88,17 +88,17 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
88
88
  console.log(e ?? "");
89
89
  }, B = (e) => {
90
90
  l(`开始执行 ${a.cyanBright(e)} 命令`);
91
- const t = ne({ text: "正在执行命令中...", color: "yellow" });
91
+ const t = te({ text: "正在执行命令中...", color: "yellow" });
92
92
  t.start();
93
- const o = oe(e, { cwd: process.cwd() });
93
+ const o = ne(e, { cwd: process.cwd() });
94
94
  l(o.toString()), t.succeed(`${a.green(e)} 命令执行成功`), l();
95
- }, Se = (e) => ["git add -A", `git commit -m ${e}`, "git push"], xe = (e, t) => [`npm run ${e}`, "git add -A", `git commit -m ${t}`, "git push"], Ce = async (e, t = "打包") => {
96
- l(), l(`${a.yellow(">>")} 开始依次执行命令...`), l(), xe(e, t).map(B), u("全部命令执行完成"), l();
97
- }, P = (e) => {
95
+ }, Se = (e) => ["git add -A", `git commit -m ${e}`, "git push"], Ce = (e, t) => [`npm run ${e}`, "git add -A", `git commit -m ${t}`, "git push"], xe = async (e, t = "打包") => {
96
+ l(), l(`${a.yellow(">>")} 开始依次执行命令...`), l(), Ce(e, t).map(B), d("全部命令执行完成"), l();
97
+ }, V = (e) => {
98
98
  l(), J(`\`${e}\` 命令错误,请检查你的命令`), l(), g.help();
99
- }, I = (e) => {
99
+ }, L = (e) => {
100
100
  const t = ["package.json", "README.md"].map((r) => {
101
- const c = S(process.cwd(), r), i = h(c).toString();
101
+ const c = w(process.cwd(), r), i = h(c).toString();
102
102
  return { path: c, content: i };
103
103
  }), [o, n] = t, s = JSON.parse(o.content);
104
104
  if (e)
@@ -111,18 +111,18 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
111
111
  }, Oe = async (e) => {
112
112
  const t = e.split("version")[1];
113
113
  if (!t)
114
- return P(e);
115
- const o = JSON.parse(h(S(process.cwd(), "package.json")).toString());
114
+ return V(e);
115
+ const o = JSON.parse(h(w(process.cwd(), "package.json")).toString());
116
116
  if (t === "++") {
117
117
  const s = o.version.split(".").reduce((r, c, i, p) => r + (i === p.length - 1 ? +c + 1 : `${c}.`), "");
118
- I(s), l(), u("命令执行完成");
118
+ L(s), l(), d("命令执行完成");
119
119
  return;
120
120
  }
121
121
  const n = t.split("@")[1];
122
- n ? (I(n), l(), u("命令执行完成")) : P(e);
122
+ n ? (L(n), l(), d("命令执行完成")) : V(e);
123
123
  }, Je = (e, t) => {
124
124
  if (e.includes("build"))
125
- return Ce(e, t);
125
+ return xe(e, t);
126
126
  if (e.includes("version"))
127
127
  return Oe(e);
128
128
  J(a.hex("#f56c6c")(`\`auto ${e}${t ? ` ${t}` : ""}\` 命令不存在`)), g.help();
@@ -133,28 +133,28 @@ const G = "mine-auto-cli", _ = "2.4.0", ie = "./dist/index.js", ae = "./dist/ind
133
133
  electron: $,
134
134
  node: $,
135
135
  "node-simple": $
136
- }, Ve = Object.keys(Ne);
137
- Ve.reduce((e, t, o) => e + (o ? ", " : "") + t, "");
136
+ }, Ee = Object.keys(Ne);
137
+ Ee.reduce((e, t, o) => e + (o ? ", " : "") + t, "");
138
138
  const f = (e = "jsonc") => `auto-cli.${e}`;
139
- w(import.meta.dirname, "./presetData.json");
139
+ j(import.meta.dirname, "./presetData.json");
140
140
  const Y = (e, t = !1) => {
141
- if (!j(e))
141
+ if (!b(e))
142
142
  return t ? {} : "";
143
143
  const o = h(e).toString();
144
- return t ? JSON.parse(re(o)) : o;
145
- }, Ee = (e) => {
146
- if (!j(e))
144
+ return t ? JSON.parse(se(o)) : o;
145
+ }, Pe = (e) => {
146
+ if (!b(e))
147
147
  return {};
148
148
  const t = h(e).toString();
149
149
  try {
150
- return se.load(t);
150
+ return oe.load(t);
151
151
  } catch {
152
152
  return {};
153
153
  }
154
- }, z = (e = !1) => Y(w(import.meta.dirname, f()), e), H = () => {
155
- const [e, t] = [f(), f("yml")].map((n) => w(process.cwd(), n)), o = z(!0);
154
+ }, z = (e = !1) => Y(j(import.meta.dirname, f()), e), H = () => {
155
+ const [e, t] = [f(), f("yml")].map((n) => j(process.cwd(), n)), o = z(!0);
156
156
  try {
157
- Object.assign(o, Ee(t), Y(e, !0));
157
+ Object.assign(o, Pe(t), Y(e, !0));
158
158
  } catch {
159
159
  }
160
160
  return o;
@@ -163,50 +163,50 @@ const Y = (e, t = !1) => {
163
163
  return t && (o = JSON.stringify(o, null, 2)), e.includes(".yml") ? o.trim().split(`
164
164
  `).slice(1, -1).reduce((n, s) => n + s.trim().replace(/[",]/g, "").replace("// ", "# ") + `
165
165
  `, "") : o;
166
- }, Le = ({ yml: e, uncomment: t, force: o }) => {
166
+ }, Me = ({ yml: e, uncomment: t, force: o }) => {
167
167
  l();
168
- const n = f(e ? "yml" : "jsonc"), s = w(process.cwd(), n);
169
- if (j(s) && !o) {
168
+ const n = f(e ? "yml" : "jsonc"), s = j(process.cwd(), n);
169
+ if (b(s) && !o) {
170
170
  l(a.yellow(`${n} 文件已存在`)), l(), l(a.yellow(`文件目录 ${s}`));
171
171
  return;
172
172
  }
173
- v(s, De(n, t)), u(`${n} 文件创建成功`), l(), l(a.green(`文件目录 ${s}`));
173
+ v(s, De(n, t)), d(`${n} 文件创建成功`), l(), l(a.green(`文件目录 ${s}`));
174
174
  };
175
- g.command("init").option("-f, --force", `强制替换 ${f()} 文件内容`, !1).option("-unc, --uncomment", `取消生成 ${f()} 带注释`, !1).option("-y, --yml", `生成 ${f("yml")} 文件`, !1).description("初始化配置文件").action(Le);
176
- const Pe = async (e = "更新代码") => {
177
- l(), l(`${a.yellow(">>")} 开始依次执行命令...`), l(), Se(e).forEach(B), u("全部命令执行完成"), l();
175
+ g.command("init").option("-f, --force", `强制替换 ${f()} 文件内容`, !1).option("-unc, --uncomment", `取消生成 ${f()} 带注释`, !1).option("-y, --yml", `生成 ${f("yml")} 文件`, !1).description("初始化配置文件").action(Me);
176
+ const Ve = async (e = "更新代码") => {
177
+ l(), l(`${a.yellow(">>")} 开始依次执行命令...`), l(), Se(e).forEach(B), d("全部命令执行完成"), l();
178
178
  };
179
- g.command("git [描述]").description("简化 Git 提交命令").action(Pe);
179
+ g.command("git [描述]").description("简化 Git 提交命令").action(Ve);
180
180
  const A = ["dist", "node_modules", ".git", "miniprogram_npm"];
181
- let N = 0, K = !1, E = !1, Q = 20;
182
- const M = ({ prev: e, i: t, index: o, arr: n, curText: s }) => {
181
+ let N = 0, K = !1, P = !1, Q = 20;
182
+ const I = ({ prev: e, i: t, index: o, arr: n, curText: s }) => {
183
183
  const r = Array.from({ length: t }).reduce((m) => m + `${t === 1 && o === n.length - 1 ? "└ " : "│ "} `, ""), c = e + r, i = (r + s).length, p = Array.from({ length: Q + N - i }).reduce((m) => `${m}-`, " ");
184
- return !K && (N = Math.max(N, i)), `${c}${s}${E ? p : ""}
184
+ return !K && (N = Math.max(N, i)), `${c}${s}${P ? p : ""}
185
185
  `;
186
186
  }, D = (e, t = 0) => e.reduce((o, n, s, r) => {
187
187
  let c;
188
- return n.children ? (c = `├── ${n.name}`, M({ prev: o, i: t, index: s, arr: r, curText: c }) + D(n.children, t + 1)) : (c = `${s === r.length - 1 ? "└── " : "├── "}${n.name}`, M({ prev: o, i: t, index: s, arr: r, curText: c }));
189
- }, ""), F = (e) => te(e, { withFileTypes: !0 }).sort((t, o) => +o.isDirectory() - +t.isDirectory()), Ie = ({ line: e, name: t }) => {
190
- E = !!e, typeof e == "string" && (Q = +e);
191
- const o = process.cwd(), n = S(o, ".gitignore");
192
- if (j(n)) {
188
+ return n.children ? (c = `├── ${n.name}`, I({ prev: o, i: t, index: s, arr: r, curText: c }) + D(n.children, t + 1)) : (c = `${s === r.length - 1 ? "└── " : "├── "}${n.name}`, I({ prev: o, i: t, index: s, arr: r, curText: c }));
189
+ }, ""), F = (e) => ee(e, { withFileTypes: !0 }).sort((t, o) => +o.isDirectory() - +t.isDirectory()), Le = ({ line: e, name: t }) => {
190
+ P = !!e, typeof e == "string" && (Q = +e);
191
+ const o = process.cwd(), n = w(o, ".gitignore");
192
+ if (b(n)) {
193
193
  const p = h(n).toString().split(`\r
194
194
  `);
195
195
  A.push(...p);
196
196
  }
197
197
  const s = o.split("\\").at(-1), c = F(o).map((p) => {
198
- const { name: m } = p, d = { name: m };
199
- return !A.includes(m) && p.isDirectory() && (d.children = F(S(p.path, m)).map(({ name: k }) => ({ name: k }))), d;
198
+ const { name: m } = p, u = { name: m };
199
+ return !A.includes(m) && p.isDirectory() && (u.children = F(w(p.path, m)).map(({ name: k }) => ({ name: k }))), u;
200
200
  }), i = [{ name: s, children: c }];
201
- E && (D(i), K = !0), v(S(o, `${typeof t == "string" && t || "directory"}.md`), D(i));
201
+ P && (D(i), K = !0), v(w(o, `${typeof t == "string" && t || "directory"}.md`), D(i));
202
202
  };
203
- g.command("mkdir").option("-l, --line [数量]", "数量", !1).option("-n, --name [文件名称]", "文件名称", !1).option("-d, --depth [深度值]", "深度值", "3").description("生成目录结构文件").action(Ie);
204
- const b = H(), [V] = ["package.json"].map((e) => w(process.cwd(), e)), Ae = (e, t) => {
203
+ g.command("mkdir").option("-l, --line [数量]", "数量", !1).option("-n, --name [文件名称]", "文件名称", !1).option("-d, --depth [深度值]", "深度值", "3").description("生成目录结构文件").action(Le);
204
+ const S = H(), [E] = ["package.json"].map((e) => j(process.cwd(), e)), Ae = (e, t) => {
205
205
  const o = Array.from({ length: t }, (c, i) => i < e ? "=" : " ").join(""), n = ~~(e / t * 100), s = `\r查找进度:[${o}] ${e}/${t} ${n}%\r`, r = e === t ? a.green(s) : a.yellow(s);
206
206
  process.stdout.write(r);
207
- }, Me = (e, t, o) => {
207
+ }, Ie = (e, t, o) => {
208
208
  let n = "latest";
209
- b.resolve.some((r) => {
209
+ S.resolve.some((r) => {
210
210
  const c = r.lastIndexOf("@");
211
211
  if (c <= 0)
212
212
  return !0;
@@ -214,19 +214,14 @@ const b = H(), [V] = ["package.json"].map((e) => w(process.cwd(), e)), Ae = (e,
214
214
  if (e === i)
215
215
  return n = p, !0;
216
216
  });
217
- const s = b.prefix + o[n];
217
+ const s = S.prefix + o[n];
218
218
  return { name: e, value: t, newVersion: s, tag: n };
219
- }, Fe = (e, t) => Array.from({ length: t - e }, () => " ").join(""), Te = (e, t) => (+!t + 1) * e.length, T = (e) => e.match(/\d.+/g)[0].split("."), Ue = (e, t) => {
220
- const o = T(e), n = T(t), s = n.slice(0, -1).findIndex((c, i) => +c > +o[i]), r = b.prefix + n[0];
221
- switch (s) {
222
- case 0:
223
- return a.red(t);
224
- case 1:
225
- return `${r}.${a.yellow(n[1])}.${a.yellow(n[2])}`;
226
- default:
227
- const c = o.at(-1), i = n.at(-1);
228
- return c !== i && parseInt(i) >= parseInt(c) ? `${r}.${n[1]}.${a.green(n[2])}` : !1;
229
- }
219
+ }, Fe = (e, t) => Array.from({ length: t - e }, () => " ").join(""), Te = (e, t) => (+!t + 1) * e.length, T = (e) => {
220
+ const [t = 0, o = 0, n = 0] = e.match(/\d.+/g)[0].split(".");
221
+ return [+t, +o, +n];
222
+ }, Ue = (e, t) => {
223
+ const [o, n, s] = T(e), [r, c, i] = T(t);
224
+ return r > o ? a.red(t) : r < o ? !1 : c > n ? `${r}.${a.yellow(c)}.${a.yellow(i)}` : c < n ? !1 : i > s ? `${r}.${c}.${a.green(i)}` : !1;
230
225
  }, qe = (e) => {
231
226
  const t = {};
232
227
  e.forEach((n) => {
@@ -236,42 +231,42 @@ const b = H(), [V] = ["package.json"].map((e) => w(process.cwd(), e)), Ae = (e,
236
231
  }), e.unshift({ name: "包名", value: "版本", newVersion: "新版本", tag: "标签" });
237
232
  const o = [];
238
233
  e.forEach(({ name: n, value: s, newVersion: r, tag: c }, i) => {
239
- const [p, m, d, k] = Object.entries({ name: n, value: s, newVersion: r, tag: c }).map(([x, Z]) => Fe(Te(Z, i), t[x]));
240
- let y = a.yellow("→"), L = !0;
234
+ const [p, m, u, k] = Object.entries({ name: n, value: s, newVersion: r, tag: c }).map(([C, Z]) => Fe(Te(Z, i), t[C]));
235
+ let y = a.yellow("→"), M = !0;
241
236
  if (i) {
242
- const x = Ue(s, r);
243
- x ? r = x : L = !1;
237
+ const C = Ue(s, r);
238
+ C ? r = C : M = !1;
244
239
  } else
245
240
  n = a.green(n), s = a.green(s), r = a.green(r), c = a.green(c), y = " ";
246
- const X = `${n + p} ${m + s} ${y} ${d + r} ${k + c}`;
247
- L && o.push(X);
248
- }), o.length > 1 ? o.forEach(l) : u("所有版本已是最新");
241
+ const X = `${n + p} ${m + s} ${y} ${u + r} ${k + c}`;
242
+ M && o.push(X);
243
+ }), o.length > 1 ? o.forEach(l) : d("所有版本已是最新");
249
244
  }, Re = async (e, t, o) => {
250
245
  l();
251
246
  let n = 0;
252
247
  const s = [], r = Object.entries(e), c = r.map(async ([i, p]) => {
253
- const m = await ce.packument(i, { registry: b.registry }), d = Me(i, p, m["dist-tags"]);
254
- s.push(d), t.forEach((k) => {
248
+ const m = await re.packument(i, { registry: S.registry }), u = Ie(i, p, m["dist-tags"]);
249
+ s.push(u), t.forEach((k) => {
255
250
  const y = o[k];
256
- y && y[i] && (y[i] = d.newVersion);
251
+ y && y[i] && (y[i] = u.newVersion);
257
252
  }), n++, await Ae(n, r.length);
258
253
  });
259
254
  return await Promise.all(c), l(), l(), s;
260
255
  }, Ge = async ({ update: e }) => {
261
- if (!j(V))
256
+ if (!b(E))
262
257
  return J("package.json 文件不存在");
263
- const t = e || b.check, o = h(V).toString(), n = JSON.parse(o), s = ["dependencies", "devDependencies", "optionalDependencies"], r = {}, c = JSON.parse(o);
258
+ const t = e || S.check, o = h(E).toString(), n = JSON.parse(o), s = ["dependencies", "devDependencies", "optionalDependencies"], r = {}, c = JSON.parse(o);
264
259
  s.forEach((p) => {
265
- n[p] && Object.entries(n[p]).forEach(([m, d]) => {
266
- !b.reject.includes(m) && (r[m] = d);
260
+ n[p] && Object.entries(n[p]).forEach(([m, u]) => {
261
+ !S.reject.includes(m) && (r[m] = u);
267
262
  });
268
263
  });
269
264
  const i = await Re(r, s, c);
270
- t && (v(V, JSON.stringify(c, null, 2)), u("文件 package.json 已更新"), l()), qe(i);
265
+ t && (v(E, JSON.stringify(c, null, 2)), d("文件 package.json 已更新"), l()), qe(i);
271
266
  };
272
267
  g.command("check").option("-u, --update", "更新 package.json 依赖内容", !1).description("升级 package.json 依赖版本").action(Ge);
273
- const _e = H(), W = "comment.md", Be = ["package.json", W], [U, q] = Be.map((e) => w(process.cwd(), e)), Ye = () => {
274
- if (!j(U))
268
+ const _e = H(), W = "comment.md", Be = ["package.json", W], [U, q] = Be.map((e) => j(process.cwd(), e)), Ye = () => {
269
+ if (!b(U))
275
270
  return J("package.json 文件不存在");
276
271
  const e = h(U).toString(), t = JSON.parse(e), o = ["dependencies", "devDependencies", "optionalDependencies"];
277
272
  let n = `### 依赖解析
@@ -285,7 +280,7 @@ const _e = H(), W = "comment.md", Be = ["package.json", W], [U, q] = Be.map((e)
285
280
  `;
286
281
  }), n += `
287
282
  `);
288
- }), n = n.slice(0, -1), v(q, n), l(), u(`${W} 文件创建成功`), l(), l(a.green(`文件目录 ${q}`));
283
+ }), n = n.slice(0, -1), v(q, n), l(), d(`${W} 文件创建成功`), l(), l(a.green(`文件目录 ${q}`));
289
284
  };
290
285
  g.command("comment").description("生成依赖注释文件").action(Ye);
291
286
  g.usage("[commands] [options]").version(_, "-v, --version", "输出版本号").helpOption("-h, --help", "输出所有命令");
@@ -295,10 +290,10 @@ g.arguments("<cmd> [env]").action((e, t) => {
295
290
  Je(e, t);
296
291
  });
297
292
  process.argv.length < 3 ? g.help() : g.parse(process.argv);
298
- const C = ee({ pkg: O });
299
- if (C.update && C.update.latest !== O.version) {
293
+ const x = ce({ pkg: O, updateCheckInterval: 1e3 * 1 });
294
+ if (x.update && x.update.latest !== O.version) {
300
295
  let e = "";
301
- switch (C.update.type) {
296
+ switch (x.update.type) {
302
297
  case "major":
303
298
  e = a.red("{latestVersion}");
304
299
  break;
@@ -310,11 +305,11 @@ if (C.update && C.update.latest !== O.version) {
310
305
  break;
311
306
  }
312
307
  const t = `https://github.com/biaov/${O.name}/compare/v${O.version}...v{latestVersion}`;
313
- C.notify({
308
+ x.notify({
314
309
  defer: !1,
315
310
  isGlobal: !0,
316
311
  message: `有更新 ${a.dim("{currentVersion}")}${a.reset(" → ")}${e}
317
- 运行 ${a.cyan("{updateCommand}")} 命令更新
312
+ 运行 ${a.cyan("{updateCommand}@latest")} 命令更新
318
313
  ${a.dim.underline(t)}`
319
314
  });
320
315
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mine-auto-cli",
3
3
  "private": false,
4
- "version": "2.4.0",
4
+ "version": "2.4.1-beta.1",
5
5
  "exports": "./dist/index.js",
6
6
  "main": "./dist/index.js",
7
7
  "type": "module",