@nasl/cli 0.1.9 → 0.1.10

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.
@@ -37670,7 +37670,7 @@ async function tryCompile(entry, options) {
37670
37670
  }
37671
37671
  }
37672
37672
 
37673
- var version = "0.1.9";
37673
+ var version = "0.1.10";
37674
37674
  var pkg = {
37675
37675
  version: version};
37676
37676
 
package/dist/index.mjs CHANGED
@@ -34499,7 +34499,7 @@ async function dev(entry, options) {
34499
34499
  // 有 src 目录,先进行一次初始编译
34500
34500
  logger.info('检测到 src 目录,开始初始编译...');
34501
34501
  try {
34502
- await compile(entry);
34502
+ await compile(entry, { logger });
34503
34503
  lastCompileSuccess = true;
34504
34504
  logger.success('初始编译成功!');
34505
34505
  }
@@ -34665,10 +34665,11 @@ async function startWebpackDevServer(outDir, options, logger) {
34665
34665
  webpackArgs += ` --port ${options.port}`;
34666
34666
  if (options?.host)
34667
34667
  webpackArgs += ` --host ${options.host}`;
34668
- if (options?.open)
34669
- webpackArgs += ' --open';
34670
- if (options?.hot)
34671
- webpackArgs += ' --hot';
34668
+ if (options?.open === false)
34669
+ webpackArgs += ' --no-open';
34670
+ if (options?.hot === false)
34671
+ webpackArgs += ' --no-hot';
34672
+ logger?.info(webpackArgs);
34672
34673
  // 使用 spawn 而不是 spawnSync,以便进程可以常驻
34673
34674
  const webpackProcess = spawn(webpackArgs, {
34674
34675
  shell: true,