@nx/angular 19.8.14 → 19.8.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "19.8.14",
3
+ "version": "19.8.15",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Playwright and Cypress. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -80,14 +80,14 @@
80
80
  "webpack-merge": "^5.8.0",
81
81
  "webpack": "^5.88.0",
82
82
  "@module-federation/enhanced": "~0.6.0",
83
- "@nx/devkit": "19.8.14",
84
- "@nx/js": "19.8.14",
85
- "@nx/eslint": "19.8.14",
86
- "@nx/webpack": "19.8.14",
87
- "@nx/web": "19.8.14",
88
- "@nx/workspace": "19.8.14",
83
+ "@nx/devkit": "19.8.15",
84
+ "@nx/js": "19.8.15",
85
+ "@nx/eslint": "19.8.15",
86
+ "@nx/webpack": "19.8.15",
87
+ "@nx/web": "19.8.15",
88
+ "@nx/workspace": "19.8.15",
89
89
  "piscina": "^4.4.0",
90
- "@nrwl/angular": "19.8.14"
90
+ "@nrwl/angular": "19.8.15"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
@@ -116,7 +116,7 @@ function executeDevServerBuilder(rawOptions, context) {
116
116
  if (workspaceDependencies.length > 0) {
117
117
  baseWebpackConfig.plugins.push(
118
118
  // @ts-expect-error - difference between angular and webpack plugin definitions bc of webpack versions
119
- new webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin(`nx run-many --target=${parsedBuildTarget.target} --projects=${workspaceDependencies.join(',')}`));
119
+ new webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin(`nx run-many --target=${parsedBuildTarget.target} --projects=${workspaceDependencies.join(',')}`, { skipWatchingDeps: !options.watchDependencies }));
120
120
  }
121
121
  }
122
122
  if (!pathToWebpackConfig) {
@@ -147,6 +147,7 @@ function getDelegateBuilderOptions(options) {
147
147
  }
148
148
  // delete extra option not supported by the delegate builder
149
149
  delete delegateBuilderOptions.buildLibsFromSource;
150
+ delete delegateBuilderOptions.watchDependencies;
150
151
  return delegateBuilderOptions;
151
152
  }
152
153
  async function loadIndexHtmlFileTransformer(pathToIndexFileTransformer, tsConfig, context, isUsingWebpackBuilder) {
@@ -15,5 +15,6 @@ function normalizeOptions(schema) {
15
15
  liveReload: schema.liveReload ?? true,
16
16
  open: schema.open ?? false,
17
17
  ssl: schema.ssl ?? false,
18
+ watchDependencies: schema.watchDependencies ?? true,
18
19
  };
19
20
  }
@@ -21,6 +21,7 @@ interface BaseSchema {
21
21
  prebundle?: boolean | { exclude: string[] };
22
22
  buildLibsFromSource?: boolean;
23
23
  esbuildMiddleware?: string[];
24
+ watchDependencies?: boolean;
24
25
  }
25
26
 
26
27
  export type SchemaWithBrowserTarget = BaseSchema & {
@@ -157,6 +157,11 @@
157
157
  "type": "string",
158
158
  "description": "The path to the middleware function. Relative to the workspace root."
159
159
  }
160
+ },
161
+ "watchDependencies": {
162
+ "type": "boolean",
163
+ "description": "Watch buildable dependencies and rebuild when they change.",
164
+ "default": true
160
165
  }
161
166
  },
162
167
  "additionalProperties": false,
@@ -6,8 +6,10 @@ export type BrowserBuilderSchema = Schema & {
6
6
  };
7
7
  indexHtmlTransformer?: string;
8
8
  buildLibsFromSource?: boolean;
9
+ watchDependencies?: boolean;
10
+
9
11
  /**
10
- * @deprecated Use `indexHtmlTransformer` instead. It will be removed in Nx 20.
12
+ * @deprecated Use `indexHtmlTransformer` instead. It will be removed in Nx 21.
11
13
  */
12
14
  indexFileTransformer?: string;
13
15
  };
@@ -466,6 +466,11 @@
466
466
  "type": "boolean",
467
467
  "description": "Read buildable libraries from source instead of building them separately.",
468
468
  "default": true
469
+ },
470
+ "watchDependencies": {
471
+ "type": "boolean",
472
+ "description": "Watch buildable dependencies and rebuild when they change.",
473
+ "default": true
469
474
  }
470
475
  },
471
476
  "additionalProperties": false,
@@ -25,7 +25,8 @@ function shouldSkipInitialTargetRun(projectGraph, project, target) {
25
25
  }
26
26
  function executeWebpackBrowserBuilder(options, context) {
27
27
  options.buildLibsFromSource ??= true;
28
- const { buildLibsFromSource, customWebpackConfig, indexHtmlTransformer, indexFileTransformer, ...delegateBuilderOptions } = options;
28
+ options.watchDependencies ??= true;
29
+ const { buildLibsFromSource, customWebpackConfig, indexHtmlTransformer, indexFileTransformer, watchDependencies, ...delegateBuilderOptions } = options;
29
30
  process.env.NX_BUILD_LIBS_FROM_SOURCE = `${buildLibsFromSource}`;
30
31
  process.env.NX_BUILD_TARGET = (0, devkit_1.targetToTargetString)({ ...context.target });
31
32
  const pathToWebpackConfig = customWebpackConfig?.path &&
@@ -61,7 +62,7 @@ function executeWebpackBrowserBuilder(options, context) {
61
62
  const skipInitialRun = shouldSkipInitialTargetRun(projectGraph, context.target.project, context.target.target);
62
63
  baseWebpackConfig.plugins.push(
63
64
  // @ts-expect-error - difference between angular and webpack plugin definitions bc of webpack versions
64
- new webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin(`nx run-many --target=${context.target.target} --projects=${workspaceDependencies.join(',')}`, skipInitialRun));
65
+ new webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin(`nx run-many --target=${context.target.target} --projects=${workspaceDependencies.join(',')}`, { skipInitialRun, skipWatchingDeps: !watchDependencies }));
65
66
  }
66
67
  }
67
68
  if (!pathToWebpackConfig) {