@nx/angular 16.3.0-beta.3 → 16.3.0-beta.5

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.3.0-beta.3",
3
+ "version": "16.3.0-beta.5",
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": {
@@ -66,14 +66,14 @@
66
66
  "migrations": "./migrations.json"
67
67
  },
68
68
  "dependencies": {
69
- "@nrwl/angular": "16.3.0-beta.3",
70
- "@nx/cypress": "16.3.0-beta.3",
71
- "@nx/devkit": "16.3.0-beta.3",
72
- "@nx/jest": "16.3.0-beta.3",
73
- "@nx/js": "16.3.0-beta.3",
74
- "@nx/linter": "16.3.0-beta.3",
75
- "@nx/webpack": "16.3.0-beta.3",
76
- "@nx/workspace": "16.3.0-beta.3",
69
+ "@nrwl/angular": "16.3.0-beta.5",
70
+ "@nx/cypress": "16.3.0-beta.5",
71
+ "@nx/devkit": "16.3.0-beta.5",
72
+ "@nx/jest": "16.3.0-beta.5",
73
+ "@nx/js": "16.3.0-beta.5",
74
+ "@nx/linter": "16.3.0-beta.5",
75
+ "@nx/webpack": "16.3.0-beta.5",
76
+ "@nx/workspace": "16.3.0-beta.5",
77
77
  "@phenomnomnominal/tsquery": "~5.0.1",
78
78
  "@typescript-eslint/type-utils": "^5.36.1",
79
79
  "chalk": "^4.1.0",
@@ -109,5 +109,5 @@
109
109
  "module": "fesm2022/nx-angular.mjs",
110
110
  "typings": "index.d.ts",
111
111
  "sideEffects": false,
112
- "gitHead": "349f751a7141aa1521ab7155d410d39749fb8084"
112
+ "gitHead": "11bb99316d977adfc3e0599076a73461ec8c48a1"
113
113
  }
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addLazyLoadedRouterConfiguration = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const js_1 = require("@nx/js");
6
- const ast_utils_1 = require("../../../utils/nx-devkit/ast-utils");
7
6
  const path_1 = require("path");
8
7
  const ensure_typescript_1 = require("@nx/js/src/utils/typescript/ensure-typescript");
9
8
  let tsModule;
@@ -17,8 +16,6 @@ function addLazyLoadedRouterConfiguration(tree, options) {
17
16
  export const ${constName}: Route[] = [/* {path: '', pathMatch: 'full', component: InsertYourComponentHere} */];`);
18
17
  const routeFileSource = tree.read(options.modulePath, 'utf-8');
19
18
  let sourceFile = tsModule.createSourceFile(options.modulePath, routeFileSource, tsModule.ScriptTarget.Latest, true);
20
- sourceFile = (0, ast_utils_1.addImportToModule)(tree, sourceFile, options.modulePath, `
21
- RouterModule.forChild(${constName}) `);
22
19
  sourceFile = (0, js_1.insertImport)(tree, sourceFile, options.modulePath, 'RouterModule', '@angular/router');
23
20
  sourceFile = (0, js_1.insertImport)(tree, sourceFile, options.modulePath, constName, './lib.routes');
24
21
  const pathToIndex = (0, devkit_1.joinPathFragments)(options.projectRoot, 'src/index.ts');
@@ -1 +1 @@
1
- {"version":3,"file":"add-lazy-loaded-router-configuration.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/library/lib/add-lazy-loaded-router-configuration.ts"],"names":[],"mappings":";;;AAAA,uCAA4D;AAC5D,+BAAsC;AACtC,kEAAuE;AAEvE,+BAA+B;AAC/B,qFAAiF;AAEjF,IAAI,QAAqC,CAAC;AAE1C,SAAgB,gCAAgC,CAC9C,IAAU,EACV,OAA2C;IAE3C,IAAI,CAAC,QAAQ,EAAE;QACb,QAAQ,GAAG,IAAA,oCAAgB,GAAE,CAAC;KAC/B;IACD,MAAM,SAAS,GAAG,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,YAAY,QAAQ,CAAC;IAClE,IAAI,CAAC,KAAK,CACR,IAAA,0BAAiB,EAAC,IAAA,cAAO,EAAC,OAAO,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC,EAC/D;;eAEW,SAAS,wFAAwF,CAC7G,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/D,IAAI,UAAU,GAAG,QAAQ,CAAC,gBAAgB,CACxC,OAAO,CAAC,UAAU,EAClB,eAAe,EACf,QAAQ,CAAC,YAAY,CAAC,MAAM,EAC5B,IAAI,CACL,CAAC;IACF,UAAU,GAAG,IAAA,6BAAiB,EAC5B,IAAI,EACJ,UAAU,EACV,OAAO,CAAC,UAAU,EAClB;4BACwB,SAAS,IAAI,CACtC,CAAC;IAEF,UAAU,GAAG,IAAA,iBAAY,EACvB,IAAI,EACJ,UAAU,EACV,OAAO,CAAC,UAAU,EAClB,cAAc,EACd,iBAAiB,CAClB,CAAC;IACF,UAAU,GAAG,IAAA,iBAAY,EACvB,IAAI,EACJ,UAAU,EACV,OAAO,CAAC,UAAU,EAClB,SAAS,EACT,cAAc,CACf,CAAC;IAEF,MAAM,WAAW,GAAG,IAAA,0BAAiB,EAAC,OAAO,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAC3E,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1D,IAAI,CAAC,KAAK,CACR,WAAW,EACX,GAAG,iBAAiB;oCACY,CACjC,CAAC;AACJ,CAAC;AApDD,4EAoDC"}
1
+ {"version":3,"file":"add-lazy-loaded-router-configuration.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/library/lib/add-lazy-loaded-router-configuration.ts"],"names":[],"mappings":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