neex 0.6.97 → 0.6.99

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,7 +59,11 @@ 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
68
  logger_manager_js_1.loggerManager.printLine(`\n${chalk_1.default.yellow('⏹')} Received SIGINT, shutting down...`, 'info');
65
69
  devManager.stop().then(() => process.exit(0));
@@ -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));
@@ -118,7 +119,7 @@ class DevManager {
118
119
  }
119
120
  }
120
121
  if (!this.options.quiet) {
121
- logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.blue(figures_1.default.info)} Loaded ${count} env variables from ${envFile}`, 'info');
122
+ logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.green(figures_1.default.play)} Loaded ${count} env variables from ${envFile}`, 'info');
122
123
  }
123
124
  }
124
125
  catch (error) {
@@ -417,7 +418,7 @@ class DevManager {
417
418
  this.moduleCache.clear();
418
419
  this.setupTempDir();
419
420
  if (!this.options.quiet) {
420
- logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.blue('ℹ')} Starting TypeScript development server...`, 'info');
421
+ logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.green(figures_1.default.play)} Starting TypeScript development server...`, 'info');
421
422
  }
422
423
  this.setupWatcher();
423
424
  await this.startProcess();
@@ -426,6 +427,9 @@ 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) {
430
434
  logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.yellow('⏹')} Stopping dev server...`, 'info');
431
435
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neex",
3
- "version": "0.6.97",
3
+ "version": "0.6.99",
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",