@nx/angular 20.8.0-canary.20250408-32b48a3 → 20.8.0-canary.20250409-7b85d91

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": "20.8.0-canary.20250408-32b48a3",
3
+ "version": "20.8.0-canary.20250409-7b85d91",
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": {
@@ -72,14 +72,14 @@
72
72
  "semver": "^7.5.3",
73
73
  "tslib": "^2.3.0",
74
74
  "webpack-merge": "^5.8.0",
75
- "@nx/devkit": "20.8.0-canary.20250408-32b48a3",
76
- "@nx/js": "20.8.0-canary.20250408-32b48a3",
77
- "@nx/eslint": "20.8.0-canary.20250408-32b48a3",
78
- "@nx/webpack": "20.8.0-canary.20250408-32b48a3",
79
- "@nx/rspack": "20.8.0-canary.20250408-32b48a3",
80
- "@nx/module-federation": "20.8.0-canary.20250408-32b48a3",
81
- "@nx/web": "20.8.0-canary.20250408-32b48a3",
82
- "@nx/workspace": "20.8.0-canary.20250408-32b48a3",
75
+ "@nx/devkit": "20.8.0-canary.20250409-7b85d91",
76
+ "@nx/js": "20.8.0-canary.20250409-7b85d91",
77
+ "@nx/eslint": "20.8.0-canary.20250409-7b85d91",
78
+ "@nx/webpack": "20.8.0-canary.20250409-7b85d91",
79
+ "@nx/rspack": "20.8.0-canary.20250409-7b85d91",
80
+ "@nx/module-federation": "20.8.0-canary.20250409-7b85d91",
81
+ "@nx/web": "20.8.0-canary.20250409-7b85d91",
82
+ "@nx/workspace": "20.8.0-canary.20250409-7b85d91",
83
83
  "piscina": "^4.4.0"
84
84
  },
85
85
  "peerDependencies": {
@@ -6,12 +6,17 @@ const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-projec
6
6
  const js_1 = require("@nx/js");
7
7
  const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
8
8
  const init_1 = require("../init/init");
9
+ const convert_to_rspack_1 = require("../convert-to-rspack/convert-to-rspack");
9
10
  const setup_ssr_1 = require("../setup-ssr/setup-ssr");
10
11
  const setup_tailwind_1 = require("../setup-tailwind/setup-tailwind");
11
12
  const ensure_angular_dependencies_1 = require("../utils/ensure-angular-dependencies");
12
13
  const lib_1 = require("./lib");
13
14
  async function applicationGenerator(tree, schema) {
14
15
  (0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'angular', 'application');
16
+ const isRspack = schema.bundler === 'rspack';
17
+ if (isRspack) {
18
+ schema.bundler = 'webpack';
19
+ }
15
20
  const options = await (0, lib_1.normalizeOptions)(tree, schema);
16
21
  const rootOffset = (0, devkit_1.offsetFromRoot)(options.appProjectRoot);
17
22
  await (0, js_1.initGenerator)(tree, {
@@ -64,6 +69,13 @@ async function applicationGenerator(tree, schema) {
64
69
  serverRouting: options.serverRouting,
65
70
  });
66
71
  }
72
+ if (isRspack) {
73
+ await (0, convert_to_rspack_1.convertToRspack)(tree, {
74
+ project: options.name,
75
+ skipInstall: options.skipPackageJson,
76
+ skipFormat: true,
77
+ });
78
+ }
67
79
  if (!options.skipFormat) {
68
80
  await (0, devkit_1.formatFiles)(tree);
69
81
  }
@@ -27,7 +27,7 @@ export interface Schema {
27
27
  standalone?: boolean;
28
28
  rootProject?: boolean;
29
29
  minimal?: boolean;
30
- bundler?: 'webpack' | 'esbuild';
30
+ bundler?: 'webpack' | 'esbuild' | 'rspack';
31
31
  ssr?: boolean;
32
32
  serverRouting?: boolean;
33
33
  nxCloudToken?: string;
@@ -171,7 +171,7 @@
171
171
  "bundler": {
172
172
  "description": "Bundler to use to build the application.",
173
173
  "type": "string",
174
- "enum": ["esbuild", "webpack"],
174
+ "enum": ["esbuild", "rspack", "webpack"],
175
175
  "default": "esbuild",
176
176
  "x-prompt": "Which bundler do you want to use to build the application?",
177
177
  "x-priority": "important"
@@ -307,6 +307,7 @@ async function convertToRspack(tree, schema) {
307
307
  if (!schema.skipInstall) {
308
308
  const installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
309
309
  '@nx/angular-rspack': versions_1.angularRspackVersion,
310
+ 'ts-node': versions_1.tsNodeVersion,
310
311
  });
311
312
  tasks.push(installTask);
312
313
  }
@@ -4,6 +4,7 @@ exports.addProject = addProject;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
6
6
  const add_release_config_1 = require("@nx/js/src/generators/library/utils/add-release-config");
7
+ const use_legacy_versioning_1 = require("nx/src/command-line/release/config/use-legacy-versioning");
7
8
  async function addProject(tree, libraryOptions) {
8
9
  const project = {
9
10
  name: libraryOptions.name,
@@ -36,7 +37,8 @@ async function addProject(tree, libraryOptions) {
36
37
  defaultConfiguration: 'production',
37
38
  };
38
39
  if (libraryOptions.publishable) {
39
- await (0, add_release_config_1.addReleaseConfigForNonTsSolution)(tree, libraryOptions.name, project);
40
+ const nxJson = (0, devkit_1.readJson)(tree, 'nx.json');
41
+ await (0, add_release_config_1.addReleaseConfigForNonTsSolution)((0, use_legacy_versioning_1.shouldUseLegacyVersioning)(nxJson.release), tree, libraryOptions.name, project);
40
42
  }
41
43
  }
42
44
  (0, devkit_1.addProjectConfiguration)(tree, libraryOptions.name, project);