@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 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.3" : (await null).default.version;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjex/git-workflow",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "个人常用的 Git 工作流工具,快速创建规范的开发分支和管理 Tag",
5
5
  "type": "module",
6
6
  "bin": {
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
- : (await import("../package.json", { with: { type: "json" } })).default
32
- .version;
32
+ : "0.0.0-dev";
33
33
 
34
34
  // 交互式主菜单
35
35
  async function mainMenu(): Promise<void> {
package/tsup.config.ts CHANGED
@@ -20,7 +20,7 @@ export default defineConfig({
20
20
  "cac",
21
21
  ],
22
22
  banner: {
23
- js: "#!/usr/bin/env node",
23
+ js: "#!/usr/bin/env -S node --no-warnings=ExperimentalWarning",
24
24
  },
25
25
  define: {
26
26
  __VERSION__: JSON.stringify(pkg.version),