@nx/angular 18.2.0 → 18.2.2

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": "18.2.0",
3
+ "version": "18.2.2",
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, 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": {
@@ -23,7 +23,7 @@
23
23
  "./executors": "./executors.js",
24
24
  "./tailwind": "./tailwind.js",
25
25
  "./module-federation": "./module-federation/index.js",
26
- "./src/utils": "./src/utils/public-api.js",
26
+ "./src/utils": "./src/utils/index.js",
27
27
  "./plugins/component-testing": "./plugins/component-testing.js",
28
28
  "./src/generators/utils": "./src/generators/utils/index.js",
29
29
  "./src/generators/move/move-impl": "./src/generators/move/move-impl.js",
@@ -78,14 +78,14 @@
78
78
  "tslib": "^2.3.0",
79
79
  "webpack": "^5.80.0",
80
80
  "webpack-merge": "^5.8.0",
81
- "@nx/devkit": "18.2.0",
82
- "@nx/js": "18.2.0",
83
- "@nx/eslint": "18.2.0",
84
- "@nx/webpack": "18.2.0",
85
- "@nx/web": "18.2.0",
86
- "@nx/workspace": "18.2.0",
81
+ "@nx/devkit": "18.2.2",
82
+ "@nx/js": "18.2.2",
83
+ "@nx/eslint": "18.2.2",
84
+ "@nx/webpack": "18.2.2",
85
+ "@nx/web": "18.2.2",
86
+ "@nx/workspace": "18.2.2",
87
87
  "piscina": "^4.4.0",
88
- "@nrwl/angular": "18.2.0"
88
+ "@nrwl/angular": "18.2.2"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
@@ -6,7 +6,7 @@ const semver_1 = require("semver");
6
6
  const angular_version_utils_1 = require("../../../executors/utilities/angular-version-utils");
7
7
  function validateOptions(options) {
8
8
  const { major: angularMajorVersion, version: angularVersion } = (0, angular_version_utils_1.getInstalledAngularVersionInfo)();
9
- if ((0, semver_1.lt)(angularVersion, '16.1.0') && options.forceEsbuild !== undefined) {
9
+ if ((0, semver_1.lt)(angularVersion, '16.1.0') && options.forceEsbuild) {
10
10
  throw new Error((0, devkit_1.stripIndents) `The "forceEsbuild" option is only supported in Angular >= 16.1.0. You are currently using "${angularVersion}".
11
11
  You can resolve this error by removing the "forceEsbuild" option or by migrating to Angular 16.1.0.`);
12
12
  }
@@ -44,7 +44,11 @@ async function libraryGeneratorInternal(tree, schema) {
44
44
  const options = await (0, normalize_options_1.normalizeOptions)(tree, schema);
45
45
  const { libraryOptions } = options;
46
46
  const pkgVersions = (0, version_utils_1.versions)(tree);
47
- await (0, js_1.initGenerator)(tree, { ...options, js: false, skipFormat: true });
47
+ await (0, js_1.initGenerator)(tree, {
48
+ ...libraryOptions,
49
+ js: false,
50
+ skipFormat: true,
51
+ });
48
52
  await (0, init_1.default)(tree, { ...libraryOptions, skipFormat: true });
49
53
  (0, ensure_angular_dependencies_1.ensureAngularDependencies)(tree);
50
54
  const project = (0, add_project_1.addProject)(tree, libraryOptions);
@@ -65,6 +69,7 @@ async function libraryGeneratorInternal(tree, schema) {
65
69
  await (0, setup_tailwind_1.default)(tree, {
66
70
  project: libraryOptions.name,
67
71
  skipFormat: true,
72
+ skipPackageJson: libraryOptions.skipPackageJson,
68
73
  });
69
74
  }
70
75
  if (libraryOptions.buildable || libraryOptions.publishable) {
@@ -1,2 +1,7 @@
1
+ /**
2
+ * Note to developers: STOP! These exports end up as the public API of @nx/angular/src/utils.
3
+ *
4
+ * Try hard to not add to this API to reduce the surface area we need to maintain.
5
+ */
1
6
  export { isStandalone, addImportToComponent, addImportToDirective, addImportToPipe, addImportToModule, addProviderToBootstrapApplication, addProviderToAppConfig, addProviderToComponent, addProviderToModule, } from './nx-devkit/ast-utils';
2
7
  export { addRoute, addProviderToRoute } from './nx-devkit/route-utils';
@@ -1,4 +1,9 @@
1
1
  "use strict";
2
+ /**
3
+ * Note to developers: STOP! These exports end up as the public API of @nx/angular/src/utils.
4
+ *
5
+ * Try hard to not add to this API to reduce the surface area we need to maintain.
6
+ */
2
7
  Object.defineProperty(exports, "__esModule", { value: true });
3
8
  exports.addProviderToRoute = exports.addRoute = exports.addProviderToModule = exports.addProviderToComponent = exports.addProviderToAppConfig = exports.addProviderToBootstrapApplication = exports.addImportToModule = exports.addImportToPipe = exports.addImportToDirective = exports.addImportToComponent = exports.isStandalone = void 0;
4
9
  var ast_utils_1 = require("./nx-devkit/ast-utils");