@lark-apaas/fullstack-cli 1.1.47-alpha.3 → 1.1.47-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.47-alpha.3",
3
+ "version": "1.1.47-beta.0",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@lark-apaas/http-client": "0.1.6-alpha.3",
34
+ "@lark-apaas/http-client": "0.1.6-beta.0",
35
35
  "@lydell/node-pty": "1.1.0",
36
36
  "@vercel/nft": "^0.30.3",
37
37
  "commander": "^13.0.0",
@@ -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 {