@nx/angular 16.4.0-beta.5 → 16.4.0-beta.7

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/migrations.json CHANGED
@@ -245,6 +245,15 @@
245
245
  },
246
246
  "description": "Switch the data persistence operator imports to '@ngrx/router-store/data-persistence'.",
247
247
  "factory": "./src/migrations/update-16-2-0/switch-data-persistence-operators-imports-to-ngrx-router-store"
248
+ },
249
+ "rename-angular-eslint-accesibility-rules": {
250
+ "cli": "nx",
251
+ "version": "16.4.0-beta.6",
252
+ "requires": {
253
+ "@angular-eslint/eslint-plugin-template": ">=16.0.0"
254
+ },
255
+ "description": "Remove the 'accessibility-' prefix from '@angular-eslint/eslint-plugin-template' rules.",
256
+ "factory": "./src/migrations/update-16-4-0/rename-angular-eslint-accesibility-rules"
248
257
  }
249
258
  },
250
259
  "packageJsonUpdates": {
@@ -464,7 +473,8 @@
464
473
  "14.4.0": {
465
474
  "version": "14.4.0-beta.1",
466
475
  "requires": {
467
- "eslint": "^7.0.0 || ^8.0.0"
476
+ "eslint": "^7.0.0 || ^8.0.0",
477
+ "@angular/core": ">=14.0.0 <15.0.0"
468
478
  },
469
479
  "packages": {
470
480
  "@angular-eslint/eslint-plugin": {
@@ -674,6 +684,10 @@
674
684
  },
675
685
  "14.8.0-angular-eslint": {
676
686
  "version": "14.8.0-beta.0",
687
+ "requires": {
688
+ "eslint": "^7.0.0 || ^8.0.0",
689
+ "@angular/core": ">=14.0.0 <15.0.0"
690
+ },
677
691
  "packages": {
678
692
  "@angular-eslint/eslint-plugin": {
679
693
  "version": "~14.0.4",
@@ -769,7 +783,8 @@
769
783
  "15.2.2-angular-eslint": {
770
784
  "version": "15.2.2-beta.0",
771
785
  "requires": {
772
- "eslint": "^7.20.0 || ^8.0.0"
786
+ "eslint": "^7.20.0 || ^8.0.0",
787
+ "@angular/core": ">=15.0.0 <16.0.0"
773
788
  },
774
789
  "packages": {
775
790
  "@angular-eslint/eslint-plugin": {
@@ -1099,7 +1114,8 @@
1099
1114
  "16.1.0-angular-eslint": {
1100
1115
  "version": "16.1.0-beta.1",
1101
1116
  "requires": {
1102
- "eslint": "^7.20.0 || ^8.0.0"
1117
+ "eslint": "^7.20.0 || ^8.0.0",
1118
+ "@angular/core": ">=16.0.0 <17.0.0"
1103
1119
  },
1104
1120
  "packages": {
1105
1121
  "@angular-eslint/eslint-plugin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "16.4.0-beta.5",
3
+ "version": "16.4.0-beta.7",
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": {
@@ -67,14 +67,14 @@
67
67
  "migrations": "./migrations.json"
68
68
  },
69
69
  "dependencies": {
70
- "@nrwl/angular": "16.4.0-beta.5",
71
- "@nx/cypress": "16.4.0-beta.5",
72
- "@nx/devkit": "16.4.0-beta.5",
73
- "@nx/jest": "16.4.0-beta.5",
74
- "@nx/js": "16.4.0-beta.5",
75
- "@nx/linter": "16.4.0-beta.5",
76
- "@nx/webpack": "16.4.0-beta.5",
77
- "@nx/workspace": "16.4.0-beta.5",
70
+ "@nrwl/angular": "16.4.0-beta.7",
71
+ "@nx/cypress": "16.4.0-beta.7",
72
+ "@nx/devkit": "16.4.0-beta.7",
73
+ "@nx/jest": "16.4.0-beta.7",
74
+ "@nx/js": "16.4.0-beta.7",
75
+ "@nx/linter": "16.4.0-beta.7",
76
+ "@nx/webpack": "16.4.0-beta.7",
77
+ "@nx/workspace": "16.4.0-beta.7",
78
78
  "@phenomnomnominal/tsquery": "~5.0.1",
79
79
  "@typescript-eslint/type-utils": "^5.36.1",
80
80
  "chalk": "^4.1.0",
@@ -110,5 +110,5 @@
110
110
  "module": "fesm2022/nx-angular.mjs",
111
111
  "typings": "index.d.ts",
112
112
  "sideEffects": false,
113
- "gitHead": "94aa566dda725adbc54b4ba31b558377f273e41b"
113
+ "gitHead": "847d3a45b61cd2c267acb66c4165a5bb875aff4f"
114
114
  }
@@ -28,6 +28,7 @@ function findModuleFromOptions(tree, options, projectRoot) {
28
28
  for (const c of candidatesDirs) {
29
29
  const candidateFiles = [
30
30
  '',
31
+ moduleBaseName,
31
32
  `${moduleBaseName}.ts`,
32
33
  `${moduleBaseName}${moduleExt}`,
33
34
  ].map((x) => (0, devkit_1.joinPathFragments)(c, x));
@@ -0,0 +1,2 @@
1
+ import type { Tree } from '@nx/devkit';
2
+ export default function (tree: Tree): Promise<void>;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ // https://github.com/angular-eslint/angular-eslint/blob/24a4de54a8991c93924abf1dfb78b132a6269aef/packages/schematics/src/migrations/update-16-0-0/update-16-0-0.ts
6
+ function default_1(tree) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
9
+ if (!filePath.endsWith('.eslintrc.json')) {
10
+ return;
11
+ }
12
+ (0, devkit_1.updateJson)(tree, filePath, (json) => {
13
+ if (json.overrides) {
14
+ for (const override of json.overrides) {
15
+ modifyRules(override);
16
+ }
17
+ }
18
+ modifyRules(json);
19
+ return json;
20
+ });
21
+ });
22
+ yield (0, devkit_1.formatFiles)(tree);
23
+ });
24
+ }
25
+ exports.default = default_1;
26
+ function modifyRules(parent) {
27
+ if (!parent.rules) {
28
+ return;
29
+ }
30
+ for (const rule of Object.keys(parent.rules)) {
31
+ if (rule.startsWith('@angular-eslint/template/accessibility-')) {
32
+ const ruleConfig = parent.rules[rule];
33
+ parent.rules[rule.replace('@angular-eslint/template/accessibility-', '@angular-eslint/template/')] = ruleConfig;
34
+ delete parent.rules[rule];
35
+ }
36
+ }
37
+ }