@lark-apaas/fullstack-cli 1.1.46-alpha.8 → 1.1.46-beta.0

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
@@ -2612,19 +2612,6 @@ async function run2(options) {
2612
2612
  console.log("[fullstack-cli] Skip syncing (not a valid npm project)");
2613
2613
  process.exit(0);
2614
2614
  }
2615
- const sparkMetaPath = path5.join(userProjectRoot, ".spark", "meta.json");
2616
- if (fs7.existsSync(sparkMetaPath)) {
2617
- try {
2618
- const meta = JSON.parse(fs7.readFileSync(sparkMetaPath, "utf-8"));
2619
- if (Number(meta.archType) === 2) {
2620
- console.log("[fullstack-cli] Skip syncing (.spark/meta.json archType=2)");
2621
- process.exit(0);
2622
- }
2623
- } catch (error) {
2624
- const message = error instanceof Error ? error.message : String(error);
2625
- console.warn(`[fullstack-cli] \u26A0 Failed to read .spark/meta.json, fallback to default sync: ${message}`);
2626
- }
2627
- }
2628
2615
  try {
2629
2616
  console.log("[fullstack-cli] Starting sync...");
2630
2617
  const config = genSyncConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.46-alpha.8",
3
+ "version": "1.1.46-beta.0",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -239,10 +239,21 @@ process.on('SIGTERM', cleanup);
239
239
  process.on('SIGINT', cleanup);
240
240
  process.on('SIGHUP', cleanup);
241
241
 
242
+ // Stale dist makes nest --watch skip missing files; watcher won't self-heal.
243
+ function cleanStaleDist() {
244
+ const distPath = path.join(PROJECT_ROOT, 'dist');
245
+ if (fs.existsSync(distPath)) {
246
+ fs.rmSync(distPath, { recursive: true, force: true });
247
+ logEvent('INFO', 'main', 'Cleaned dist/ to force full rebuild');
248
+ }
249
+ }
250
+
242
251
  // ── Main ──────────────────────────────────────────────────────────────────────
243
252
  async function main() {
244
253
  logEvent('INFO', 'main', '========== Dev session started ==========');
245
254
 
255
+ cleanStaleDist();
256
+
246
257
  // Initialize action plugins
247
258
  writeOutput('\n🔌 Initializing action plugins...\n');
248
259
  try {