@xdevops/issue-auto-finish 1.0.3 → 1.0.5

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 (30) hide show
  1. package/dist/{analyze-I7UOJB4F.js → analyze-ONQDTYCN.js} +2 -2
  2. package/dist/{chunk-C6ZJVIPZ.js → chunk-F4IB7IRT.js} +7 -7
  3. package/dist/{chunk-C6ZJVIPZ.js.map → chunk-F4IB7IRT.js.map} +1 -1
  4. package/dist/{chunk-LEQYGOMJ.js → chunk-F7AYCERS.js} +3 -3
  5. package/dist/{chunk-KISVPNSV.js → chunk-MH6LHFPB.js} +2 -2
  6. package/dist/chunk-MH6LHFPB.js.map +1 -0
  7. package/dist/{chunk-PECYMYAK.js → chunk-XJYGHL6J.js} +12 -2
  8. package/dist/chunk-XJYGHL6J.js.map +1 -0
  9. package/dist/cli/commands/init.d.ts.map +1 -1
  10. package/dist/cli/setup/DependencyChecker.d.ts.map +1 -1
  11. package/dist/cli.js +4 -4
  12. package/dist/config-6GFBDMGD.js +7 -0
  13. package/dist/{doctor-ZPGIBA5N.js → doctor-EOYNPACK.js} +2 -2
  14. package/dist/index.js +4 -4
  15. package/dist/{init-LZGCIHE7.js → init-KF5OGQ3B.js} +5 -4
  16. package/dist/init-KF5OGQ3B.js.map +1 -0
  17. package/dist/lib.js +1 -1
  18. package/dist/run.js +4 -4
  19. package/dist/{start-NMQHUKGF.js → start-3XVP2TAP.js} +1 -1
  20. package/dist/updater/UpdateExecutor.d.ts.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/chunk-KISVPNSV.js.map +0 -1
  23. package/dist/chunk-PECYMYAK.js.map +0 -1
  24. package/dist/config-RI7NLDXI.js +0 -7
  25. package/dist/init-LZGCIHE7.js.map +0 -1
  26. /package/dist/{analyze-I7UOJB4F.js.map → analyze-ONQDTYCN.js.map} +0 -0
  27. /package/dist/{chunk-LEQYGOMJ.js.map → chunk-F7AYCERS.js.map} +0 -0
  28. /package/dist/{config-RI7NLDXI.js.map → config-6GFBDMGD.js.map} +0 -0
  29. /package/dist/{doctor-ZPGIBA5N.js.map → doctor-EOYNPACK.js.map} +0 -0
  30. /package/dist/{start-NMQHUKGF.js.map → start-3XVP2TAP.js.map} +0 -0
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-5JYCGAU3.js";
5
5
  import {
6
6
  loadConfig
7
- } from "./chunk-KISVPNSV.js";
7
+ } from "./chunk-MH6LHFPB.js";
8
8
  import {
9
9
  createAIRunner
10
10
  } from "./chunk-SWG2Y7YX.js";
@@ -69,4 +69,4 @@ async function analyzeCommand(opts) {
69
69
  export {
70
70
  analyzeCommand
71
71
  };
72
- //# sourceMappingURL=analyze-I7UOJB4F.js.map
72
+ //# sourceMappingURL=analyze-ONQDTYCN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSetupRouter
3
- } from "./chunk-LEQYGOMJ.js";
3
+ } from "./chunk-F7AYCERS.js";
4
4
  import {
5
5
  BrainstormService,
6
6
  CLASSIC_PIPELINE,
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-5JYCGAU3.js";
35
35
  import {
36
36
  loadConfig
37
- } from "./chunk-KISVPNSV.js";
37
+ } from "./chunk-MH6LHFPB.js";
38
38
  import {
39
39
  createAIRunner,
40
40
  isShuttingDown,
@@ -2809,9 +2809,12 @@ var UpdateExecutor = class {
2809
2809
  rmSync(distDir, { recursive: true, force: true });
2810
2810
  }
2811
2811
  cpSync(backupDir, distDir, { recursive: true });
2812
- rmSync(backupDir, { recursive: true, force: true });
2813
2812
  }
2814
2813
  throw err;
2814
+ } finally {
2815
+ if (existsSync2(backupDir)) {
2816
+ rmSync(backupDir, { recursive: true, force: true });
2817
+ }
2815
2818
  }
2816
2819
  logger16.info("Reloading via PM2...");
2817
2820
  try {
@@ -2822,9 +2825,6 @@ var UpdateExecutor = class {
2822
2825
  });
2823
2826
  throw err;
2824
2827
  }
2825
- if (existsSync2(backupDir)) {
2826
- rmSync(backupDir, { recursive: true, force: true });
2827
- }
2828
2828
  logger16.info("Update completed successfully", { version: targetVersion });
2829
2829
  }
2830
2830
  };
@@ -3063,4 +3063,4 @@ async function main() {
3063
3063
  export {
3064
3064
  main
3065
3065
  };
3066
- //# sourceMappingURL=chunk-C6ZJVIPZ.js.map
3066
+ //# sourceMappingURL=chunk-F4IB7IRT.js.map