@lark-apaas/fullstack-cli 1.1.11-alpha.1 → 1.1.11

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 (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2532,11 +2532,10 @@ async function generateReport(result) {
2532
2532
  }
2533
2533
  lines.push("");
2534
2534
  const logDir = process.env.LOG_DIR || "logs";
2535
- const logDirPath = path14.join(getProjectRoot3(), logDir);
2536
- if (!fs14.existsSync(logDirPath)) {
2535
+ if (!fs14.existsSync(logDir)) {
2537
2536
  return;
2538
2537
  }
2539
- const reportDir = path14.join(logDirPath, "migration");
2538
+ const reportDir = path14.join(logDir, "migration");
2540
2539
  if (!fs14.existsSync(reportDir)) {
2541
2540
  fs14.mkdirSync(reportDir, { recursive: true });
2542
2541
  }
@@ -2700,7 +2699,11 @@ async function runCapabilityMigration(options = {}) {
2700
2699
  const result = buildResult(jsonResult, pluginResult, codeResult, cleanupResult);
2701
2700
  printSummary(result);
2702
2701
  if (!fullOptions.dryRun) {
2703
- await generateReport(result);
2702
+ try {
2703
+ await generateReport(result);
2704
+ } catch (error) {
2705
+ console.error("\u26A0\uFE0F Failed to generate report:", error);
2706
+ }
2704
2707
  }
2705
2708
  return result;
2706
2709
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.11-alpha.1",
3
+ "version": "1.1.11",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",