@zjex/git-workflow 0.2.3 → 0.2.4
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/src/index.ts +3 -3
- package/tsup.config.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env -S node --no-warnings=ExperimentalWarning
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
import { cac } from "cac";
|
|
@@ -1490,7 +1490,7 @@ process.on("uncaughtException", (err) => {
|
|
|
1490
1490
|
console.error(err);
|
|
1491
1491
|
process.exit(1);
|
|
1492
1492
|
});
|
|
1493
|
-
var version = true ? "0.2.
|
|
1493
|
+
var version = true ? "0.2.4" : "0.0.0-dev";
|
|
1494
1494
|
async function mainMenu() {
|
|
1495
1495
|
checkForUpdates(version, "@zjex/git-workflow").catch(() => {
|
|
1496
1496
|
});
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { stash } from "./commands/stash.js";
|
|
|
12
12
|
import { commit } from "./commands/commit.js";
|
|
13
13
|
import { showHelp } from "./commands/help.js";
|
|
14
14
|
import { checkForUpdates } from "./update-notifier.js";
|
|
15
|
+
import { checkForUpdates } from "./update-notifier.js";
|
|
15
16
|
|
|
16
17
|
// 捕获 Ctrl+C 退出,静默处理
|
|
17
18
|
process.on("uncaughtException", (err) => {
|
|
@@ -26,10 +27,9 @@ declare const __VERSION__: string | undefined;
|
|
|
26
27
|
|
|
27
28
|
// 开发环境下从 package.json 读取版本号
|
|
28
29
|
const version: string =
|
|
29
|
-
typeof __VERSION__ !== "undefined"
|
|
30
|
+
typeof __VERSION__ !== "undefined" && __VERSION__ !== ""
|
|
30
31
|
? __VERSION__
|
|
31
|
-
:
|
|
32
|
-
.version;
|
|
32
|
+
: "0.0.0-dev";
|
|
33
33
|
|
|
34
34
|
// 交互式主菜单
|
|
35
35
|
async function mainMenu(): Promise<void> {
|