neex 0.6.93 → 0.6.95

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.
@@ -59,9 +59,13 @@ function addDevCommands(program) {
59
59
  nodeArgs: options.nodeArgs ? options.nodeArgs.split(',').map((arg) => arg.trim()) : []
60
60
  });
61
61
  // --- Signal Handlers for Dev ---
62
+ let isShuttingDown = false;
62
63
  const cleanupAndExit = () => {
64
+ if (isShuttingDown)
65
+ return;
66
+ isShuttingDown = true;
63
67
  if (devManager) {
64
- logger_manager_js_1.loggerManager.printLine(`\n${chalk_1.default.yellow('⏹')} Shutting down...`, 'info');
68
+ // The main shutdown message is now in devManager.stop()
65
69
  devManager.stop().then(() => process.exit(0));
66
70
  }
67
71
  else {
@@ -47,6 +47,7 @@ class DevManager {
47
47
  this.startTime = null;
48
48
  this.moduleCache = new Map();
49
49
  this.currentTempFile = null;
50
+ this.isShuttingDown = false;
50
51
  this.options = options;
51
52
  this.tempDir = path_1.default.join(process.cwd(), '.neex-temp');
52
53
  this.debouncedRestart = (0, lodash_1.debounce)(this.restart.bind(this), Math.max(options.delay, 100));
@@ -426,7 +427,11 @@ class DevManager {
426
427
  }
427
428
  }
428
429
  async stop() {
430
+ if (this.isShuttingDown)
431
+ return;
432
+ this.isShuttingDown = true;
429
433
  if (!this.options.quiet) {
434
+ logger_manager_js_1.loggerManager.printLine(`\n${chalk_1.default.yellow('⏹')} Shutting down...`, 'info');
430
435
  logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.yellow('⏹')} Stopping dev server...`, 'info');
431
436
  }
432
437
  if (this.watcher) {
@@ -434,9 +439,6 @@ class DevManager {
434
439
  this.watcher = null;
435
440
  }
436
441
  await this.stopProcess();
437
- if (!this.options.quiet) {
438
- logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.green('⏹')} Dev server stopped.`, 'info');
439
- }
440
442
  // Cleanup temp files
441
443
  if (fs_1.default.existsSync(this.tempDir)) {
442
444
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neex",
3
- "version": "0.6.93",
3
+ "version": "0.6.95",
4
4
  "description": "The Modern Build System for Polyrepo-in-Monorepo Architecture",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",