@nx/angular 21.5.1 → 21.6.1-beta.0

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": "21.5.1",
3
+ "version": "21.6.1-beta.0",
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": {
@@ -58,14 +58,14 @@
58
58
  "migrations": "./migrations.json"
59
59
  },
60
60
  "dependencies": {
61
- "@nx/devkit": "21.5.1",
62
- "@nx/eslint": "21.5.1",
63
- "@nx/js": "21.5.1",
64
- "@nx/module-federation": "21.5.1",
65
- "@nx/rspack": "21.5.1",
66
- "@nx/web": "21.5.1",
67
- "@nx/webpack": "21.5.1",
68
- "@nx/workspace": "21.5.1",
61
+ "@nx/devkit": "21.6.1-beta.0",
62
+ "@nx/eslint": "21.6.1-beta.0",
63
+ "@nx/js": "21.6.1-beta.0",
64
+ "@nx/module-federation": "21.6.1-beta.0",
65
+ "@nx/rspack": "21.6.1-beta.0",
66
+ "@nx/web": "21.6.1-beta.0",
67
+ "@nx/webpack": "21.6.1-beta.0",
68
+ "@nx/workspace": "21.6.1-beta.0",
69
69
  "@phenomnomnominal/tsquery": "~5.0.1",
70
70
  "@typescript-eslint/type-utils": "^8.0.0",
71
71
  "enquirer": "~2.3.6",
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAMtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAQ5D,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,EACxB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,gBAAgB,CAAC,CAqD3B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAMtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAiB5D,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,EACxB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,gBAAgB,CAAC,CAqD3B"}
@@ -9,6 +9,12 @@ function arePluginsExplicitlyDisabled(host) {
9
9
  const addPluginEnvVar = process.env.NX_ADD_PLUGINS;
10
10
  return useInferencePlugins === false || addPluginEnvVar === 'false';
11
11
  }
12
+ function validateBundler(bundler) {
13
+ if (['esbuild', 'webpack', 'rspack'].includes(bundler)) {
14
+ return bundler;
15
+ }
16
+ throw new Error(`Invalid bundler: ${bundler}. Please use one of the following: 'esbuild', 'webpack', 'rspack'.`);
17
+ }
12
18
  async function normalizeOptions(host, options, isRspack) {
13
19
  await (0, project_name_and_root_utils_1.ensureRootProjectName)(options, 'application');
14
20
  const { projectName: appProjectName, projectRoot: appProjectRoot } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
@@ -23,7 +29,7 @@ async function normalizeOptions(host, options, isRspack) {
23
29
  const parsedTags = options.tags
24
30
  ? options.tags.split(',').map((s) => s.trim())
25
31
  : [];
26
- const bundler = options.bundler ?? 'esbuild';
32
+ const bundler = validateBundler(options.bundler ?? 'esbuild');
27
33
  const addPlugin = options.addPlugin ?? (!arePluginsExplicitlyDisabled(host) && isRspack);
28
34
  // Set defaults and then overwrite with user options
29
35
  return {