neex 0.6.10 → 0.6.12

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.
@@ -58,7 +58,7 @@ class DevRunner {
58
58
  ignore: this.options.ignore,
59
59
  ext: this.options.ext,
60
60
  delay: this.options.delay,
61
- verbose: false // Always set to false to hide watcher logs
61
+ verbose: false // Always hide watcher logs
62
62
  };
63
63
  this.fileWatcher = new watcher_1.FileWatcher(watchOptions);
64
64
  this.fileWatcher.on('change', (event) => {
@@ -80,16 +80,9 @@ class DevRunner {
80
80
  // Create a modified options object for the runner to clean up output
81
81
  const runnerOptions = {
82
82
  ...this.options,
83
- // Override prefix behavior to show clean command name
83
+ // Override prefix behavior to show "neex dev" instead of full command
84
84
  customPrefix: (command) => {
85
- // Extract just the filename from the command
86
- const match = command.match(/(?:npx ts-node|node)\s+(.+)/);
87
- if (match) {
88
- const filePath = match[1];
89
- const fileName = filePath.split('/').pop() || filePath;
90
- return `${fileName}`;
91
- }
92
- return command;
85
+ return 'neex dev'; // Always show "neex dev" as prefix
93
86
  }
94
87
  };
95
88
  this.runner = new runner_1.Runner(runnerOptions);
@@ -105,24 +98,8 @@ class DevRunner {
105
98
  }
106
99
  }
107
100
  printDevBanner() {
108
- var _a, _b, _c;
109
- if (!this.options.showInfo) {
110
- return; // Don't show banner if showInfo is false
111
- }
112
- const prefix = chalk_1.default.cyan(`[${this.options.runnerName}]`);
113
- const uptime = Math.floor((Date.now() - this.startTime.getTime()) / 1000);
114
- const uptimeStr = this.formatUptime(uptime);
115
- if (this.options.showInfo) {
116
- console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Starting file watcher...`));
117
- console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} File watcher started. Monitoring ${((_a = this.options.watch) === null || _a === void 0 ? void 0 : _a.length) || 1} locations`));
118
- console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Watching extensions: ${((_b = this.options.ext) === null || _b === void 0 ? void 0 : _b.join(', ')) || 'js, mjs, json, ts, tsx, jsx, vue, svelte'}`));
119
- console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Uptime: ${uptimeStr}`));
120
- console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Watching: ${((_c = this.options.watch) === null || _c === void 0 ? void 0 : _c.join(', ')) || 'current directory'}`));
121
- if (this.restartCount > 0) {
122
- console.log(chalk_1.default.blue(`${prefix} ${figures_1.default.info} Restarted ${this.restartCount} times`));
123
- }
124
- console.log('');
125
- }
101
+ // Don't show any banner info - keep it completely clean
102
+ return;
126
103
  }
127
104
  formatUptime(seconds) {
128
105
  if (seconds < 60) {
@@ -145,33 +122,20 @@ class DevRunner {
145
122
  this.startTime = new Date();
146
123
  // Setup file watcher
147
124
  this.setupFileWatcher();
148
- // Print development banner only if showInfo is true
149
- this.printDevBanner();
125
+ // Don't print any development banner
150
126
  // Start file watcher
151
127
  if (this.fileWatcher) {
152
128
  await this.fileWatcher.start();
153
129
  }
154
130
  // Run initial commands
155
- const prefix = chalk_1.default.cyan(`[${this.options.runnerName}]`);
156
- if (this.options.showInfo) {
157
- logger_1.default.printLine(`${prefix} Starting development server...`, 'info');
158
- }
159
131
  await this.runCommands();
160
132
  // Set up graceful shutdown
161
133
  this.setupGracefulShutdown();
162
- if (this.options.showInfo) {
163
- logger_1.default.printLine(`${prefix} Development server started. Watching for changes...`, 'info');
164
- logger_1.default.printLine(`${prefix} Press ${chalk_1.default.cyan('Ctrl+C')} to stop`, 'info');
165
- }
166
134
  }
167
135
  async restart() {
168
- const prefix = chalk_1.default.cyan(`[${this.options.runnerName}]`);
169
136
  if (!this.isRunning) {
170
137
  return;
171
138
  }
172
- if (this.options.showInfo) {
173
- logger_1.default.printLine(`${prefix} Restarting due to file changes...`, 'info');
174
- }
175
139
  this.restartCount++;
176
140
  // Stop current processes
177
141
  if (this.runner) {
@@ -179,22 +143,13 @@ class DevRunner {
179
143
  }
180
144
  // Wait a moment before restarting
181
145
  await new Promise(resolve => setTimeout(resolve, 500));
182
- // Print restart banner only if showInfo is true
183
- this.printDevBanner();
184
146
  // Run commands again
185
147
  await this.runCommands();
186
- if (this.options.showInfo) {
187
- logger_1.default.printLine(`${prefix} Restart completed. Watching for changes...`, 'info');
188
- }
189
148
  }
190
149
  async stop() {
191
- const prefix = chalk_1.default.cyan(`[${this.options.runnerName}]`);
192
150
  if (!this.isRunning) {
193
151
  return;
194
152
  }
195
- if (this.options.showInfo) {
196
- logger_1.default.printLine(`${prefix} Stopping development server...`, 'info');
197
- }
198
153
  this.isRunning = false;
199
154
  // Stop file watcher
200
155
  if (this.fileWatcher) {
@@ -207,9 +162,9 @@ class DevRunner {
207
162
  const uptime = Math.floor((Date.now() - this.startTime.getTime()) / 1000);
208
163
  const uptimeStr = this.formatUptime(uptime);
209
164
  if (this.options.showInfo) {
210
- logger_1.default.printLine(`${prefix} ${this.options.runnerName} development server stopped after ${uptimeStr}`, 'info');
165
+ logger_1.default.printLine(`${this.options.runnerName} development server stopped after ${uptimeStr}`, 'info');
211
166
  if (this.restartCount > 0) {
212
- logger_1.default.printLine(`${prefix} Total restarts: ${this.restartCount}`, 'info');
167
+ logger_1.default.printLine(`Total restarts: ${this.restartCount}`, 'info');
213
168
  }
214
169
  }
215
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neex",
3
- "version": "0.6.10",
3
+ "version": "0.6.12",
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",