@nestjs/cli 10.0.2 → 10.0.3

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.
@@ -76,6 +76,7 @@ class BuildAction extends abstract_action_1.AbstractAction {
76
76
  await swc.run(configuration, pathToTsconfig, appName, {
77
77
  watch: watchMode,
78
78
  typeCheck: (0, get_value_or_default_1.getValueOrDefault)(configuration, 'compilerOptions.typeCheck', appName, 'typeCheck', options),
79
+ assetsManager: this.assetsManager,
79
80
  }, onSuccess);
80
81
  }
81
82
  runWebpack(configuration, appName, inputs, pathToTsconfig, debug, watchMode, onSuccess) {
@@ -1,9 +1,11 @@
1
1
  import { Configuration } from '../../configuration';
2
+ import { AssetsManager } from '../assets-manager';
2
3
  import { BaseCompiler } from '../base-compiler';
3
4
  import { PluginsLoader } from '../plugins/plugins-loader';
4
5
  export type SwcCompilerExtras = {
5
6
  watch: boolean;
6
7
  typeCheck: boolean;
8
+ assetsManager: AssetsManager;
7
9
  };
8
10
  export declare class SwcCompiler extends BaseCompiler {
9
11
  private readonly pluginMetadataGenerator;
@@ -38,7 +38,12 @@ class SwcCompiler extends base_compiler_1.BaseCompiler {
38
38
  await this.runTypeChecker(configuration, tsConfigPath, appName, extras);
39
39
  }
40
40
  await this.runSwc(swcOptions, extras);
41
- onSuccess?.();
41
+ if (onSuccess) {
42
+ onSuccess();
43
+ }
44
+ else {
45
+ extras.assetsManager?.closeWatchers();
46
+ }
42
47
  }
43
48
  }
44
49
  runTypeChecker(configuration, tsConfigPath, appName, extras) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/cli",
3
- "version": "10.0.2",
3
+ "version": "10.0.3",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@cli)",
5
5
  "publishConfig": {
6
6
  "access": "public"