@nx/angular 16.9.0 → 16.9.1

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": "16.9.0",
3
+ "version": "16.9.1",
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- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -79,14 +79,14 @@
79
79
  "webpack": "^5.80.0",
80
80
  "webpack-merge": "^5.8.0",
81
81
  "enquirer": "^2.3.6",
82
- "@nx/devkit": "16.9.0",
83
- "@nx/cypress": "16.9.0",
84
- "@nx/jest": "16.9.0",
85
- "@nx/js": "16.9.0",
86
- "@nx/linter": "16.9.0",
87
- "@nx/webpack": "16.9.0",
88
- "@nx/workspace": "16.9.0",
89
- "@nrwl/angular": "*"
82
+ "@nx/devkit": "16.9.1",
83
+ "@nx/cypress": "16.9.1",
84
+ "@nx/jest": "16.9.1",
85
+ "@nx/js": "16.9.1",
86
+ "@nx/linter": "16.9.1",
87
+ "@nx/webpack": "16.9.1",
88
+ "@nx/workspace": "16.9.1",
89
+ "@nrwl/angular": "16.9.1"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@angular-devkit/build-angular": ">= 14.0.0 < 17.0.0",
@@ -1,3 +1,3 @@
1
1
  import type { Tree } from '@nx/devkit';
2
2
  import type { NormalizedSchema } from '../schema';
3
- export declare function findModuleFromOptions(tree: Tree, options: NormalizedSchema, projectRoot: string): string | null;
3
+ export declare function findModuleFromOptions(tree: Tree, options: NormalizedSchema, projectRoot: string): string;
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findModuleFromOptions = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const path_1 = require("path");
6
- // Adapted from https://github.com/angular/angular-cli/blob/main/packages/schematics/angular/utility/find-module.ts#L29
7
- // to match the logic in the component schematic. It doesn't throw if it can't
8
- // find a module since the schematic would have thrown before getting here.
6
+ // Adapted from https://github.com/angular/angular-cli/blob/732aab5fa7e63618c89dfbbb6f78753f706d7014/packages/schematics/angular/utility/find-module.ts#L29
7
+ // to match the logic from the Angular CLI component schematic.
9
8
  const moduleExt = '.module.ts';
10
9
  const routingModuleExt = '-routing.module.ts';
11
10
  function findModuleFromOptions(tree, options, projectRoot) {
@@ -38,7 +37,8 @@ function findModuleFromOptions(tree, options, projectRoot) {
38
37
  }
39
38
  }
40
39
  }
41
- return null;
40
+ throw new Error(`Specified module '${options.module}' does not exist.\n` +
41
+ `Looked in the following directories:\n ${candidatesDirs.join('\n ')}`);
42
42
  }
43
43
  }
44
44
  exports.findModuleFromOptions = findModuleFromOptions;