neex 0.6.81 → 0.6.83

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.
@@ -17,7 +17,8 @@ function addDevCommands(program) {
17
17
  .option('-w, --watch <patterns>', 'Watch additional patterns (comma-separated)', 'src/**/*')
18
18
  .option('-i, --ignore <patterns>', 'Ignore patterns (comma-separated)', 'node_modules,dist,build,.git,coverage')
19
19
  .option('-e, --ext <extensions>', 'File extensions to watch (comma-separated)', 'ts,tsx,js,jsx,json')
20
- .option('-d, --delay <ms>', 'Delay before restart (ms)', parseInt, 800)
20
+ .option('-d, --delay <ms>', 'Delay before restart (ms)', parseInt, 500)
21
+ .option('--fast', 'Enable fast hot reload (shorter delays)')
21
22
  .option('-c, --no-color', 'Disable colored output')
22
23
  .option('-q, --quiet', 'Reduce output verbosity')
23
24
  .option('-v, --verbose', 'Verbose output')
@@ -33,6 +34,8 @@ function addDevCommands(program) {
33
34
  .action(async (file, options) => {
34
35
  try {
35
36
  const targetFile = file || 'src/index.ts';
37
+ // تنظیمات fast mode
38
+ const delay = options.fast ? 200 : options.delay;
36
39
  if (!options.quiet) {
37
40
  logger_manager_js_1.loggerManager.printLine(`${chalk_1.default.blue(figures_1.default.info)} Starting ${chalk_1.default.cyan('neex dev')} for ${chalk_1.default.cyan(targetFile)}`, 'info');
38
41
  if (options.verbose) {
@@ -49,7 +52,7 @@ function addDevCommands(program) {
49
52
  watch: options.watch.split(',').map((p) => p.trim()),
50
53
  ignore: options.ignore.split(',').map((p) => p.trim()),
51
54
  extensions: options.ext.split(',').map((e) => e.trim()),
52
- delay: options.delay,
55
+ delay: delay,
53
56
  color: options.color,
54
57
  quiet: options.quiet,
55
58
  verbose: options.verbose,
@@ -394,7 +394,11 @@ class DevManager {
394
394
  ignoreInitial: true,
395
395
  followSymlinks: false,
396
396
  usePolling: false,
397
- atomic: 300
397
+ atomic: 200,
398
+ awaitWriteFinish: {
399
+ stabilityThreshold: 100,
400
+ pollInterval: 50
401
+ }
398
402
  });
399
403
  this.watcher.on('change', (filePath) => {
400
404
  this.invalidateCache(filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neex",
3
- "version": "0.6.81",
3
+ "version": "0.6.83",
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",