@nx/angular 16.9.0-beta.0 → 16.9.0-beta.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": "16.9.0-beta.0",
3
+ "version": "16.9.0-beta.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- 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.9.0-beta.0",
71
- "@nx/cypress": "16.9.0-beta.0",
72
- "@nx/devkit": "16.9.0-beta.0",
73
- "@nx/jest": "16.9.0-beta.0",
74
- "@nx/js": "16.9.0-beta.0",
75
- "@nx/linter": "16.9.0-beta.0",
76
- "@nx/webpack": "16.9.0-beta.0",
77
- "@nx/workspace": "16.9.0-beta.0",
70
+ "@nrwl/angular": "16.9.0-beta.2",
71
+ "@nx/cypress": "16.9.0-beta.2",
72
+ "@nx/devkit": "16.9.0-beta.2",
73
+ "@nx/jest": "16.9.0-beta.2",
74
+ "@nx/js": "16.9.0-beta.2",
75
+ "@nx/linter": "16.9.0-beta.2",
76
+ "@nx/webpack": "16.9.0-beta.2",
77
+ "@nx/workspace": "16.9.0-beta.2",
78
78
  "@phenomnomnominal/tsquery": "~5.0.1",
79
79
  "@typescript-eslint/type-utils": "^5.36.1",
80
80
  "chalk": "^4.1.0",
@@ -111,5 +111,5 @@
111
111
  "module": "fesm2022/nx-angular.mjs",
112
112
  "typings": "index.d.ts",
113
113
  "sideEffects": false,
114
- "gitHead": "822fb12c3f0bbaeb6d4a6fbc6cb1064a291e907f"
114
+ "gitHead": "e11d538fa2c7266066d554d9405abab8e0a65040"
115
115
  }
@@ -174,7 +174,7 @@ function addPrettierIgnoreEntry(tree, entry) {
174
174
  return;
175
175
  }
176
176
  let content = tree.read('.prettierignore', 'utf-8');
177
- if (/^\.angular$/gm.test(content)) {
177
+ if (/^\.angular(\/cache)?$/gm.test(content)) {
178
178
  return;
179
179
  }
180
180
  content = `${content}\n${entry}\n`;
@@ -18,7 +18,7 @@ async function setupMf(tree, rawOptions) {
18
18
  (0, lib_1.addRemoteToHost)(tree, options);
19
19
  (0, lib_1.addRemoteEntry)(tree, options, projectConfig.root);
20
20
  (0, lib_1.removeDeadCodeFromRemote)(tree, options);
21
- installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/web': versions_1.nxVersion });
21
+ installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/web': versions_1.nxVersion, '@nx/webpack': versions_1.nxVersion });
22
22
  }
23
23
  const remotesWithPorts = (0, lib_1.getRemotesWithPorts)(tree, options);
24
24
  (0, lib_1.generateWebpackConfig)(tree, options, projectConfig.root, remotesWithPorts);
@@ -29,6 +29,7 @@ async function setupMf(tree, rawOptions) {
29
29
  if (options.mfType === 'host') {
30
30
  (0, lib_1.setupHostIfDynamic)(tree, options);
31
31
  (0, lib_1.updateHostAppRoutes)(tree, options);
32
+ installTask = (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@nx/webpack': versions_1.nxVersion });
32
33
  }
33
34
  if (!options.skipE2E) {
34
35
  (0, lib_1.addCypressOnErrorWorkaround)(tree, options);
@@ -1,4 +1,4 @@
1
- import { ModuleFederationConfig, SharedLibraryConfig } from '@nx/devkit/src/utils/module-federation';
1
+ import { ModuleFederationConfig, SharedLibraryConfig } from '@nx/webpack/src/utils/module-federation';
2
2
  export declare function applyDefaultEagerPackages(sharedConfig: Record<string, SharedLibraryConfig>): void;
3
3
  export declare const DEFAULT_NPM_PACKAGES_TO_AVOID: string[];
4
4
  export declare const DEFAULT_ANGULAR_PACKAGES_TO_SHARE: string[];
@@ -7,7 +7,7 @@ export declare function getModuleFederationConfig(mfConfig: ModuleFederationConf
7
7
  isServer: boolean;
8
8
  determineRemoteUrl?: (remote: string) => string;
9
9
  }): Promise<{
10
- sharedLibraries: import("@nx/devkit").SharedWorkspaceLibraryConfig;
10
+ sharedLibraries: import("@nx/webpack/src/utils/module-federation").SharedWorkspaceLibraryConfig;
11
11
  sharedDependencies: {
12
12
  [x: string]: SharedLibraryConfig;
13
13
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getModuleFederationConfig = exports.getFunctionDeterminateRemoteUrl = exports.DEFAULT_ANGULAR_PACKAGES_TO_SHARE = exports.DEFAULT_NPM_PACKAGES_TO_AVOID = exports.applyDefaultEagerPackages = void 0;
4
- const module_federation_1 = require("@nx/devkit/src/utils/module-federation");
4
+ const module_federation_1 = require("@nx/webpack/src/utils/module-federation");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const project_graph_1 = require("nx/src/project-graph/project-graph");
7
7
  function applyDefaultEagerPackages(sharedConfig) {
@@ -70,7 +70,7 @@ async function getModuleFederationConfig(mfConfig, options = { isServer: false }
70
70
  }
71
71
  });
72
72
  const sharedDependencies = {
73
- ...sharedLibraries.getLibraries(),
73
+ ...sharedLibraries.getLibraries(projectGraph.nodes[mfConfig.name].data.root),
74
74
  ...npmPackages,
75
75
  };
76
76
  applyDefaultEagerPackages(sharedDependencies);
@@ -1,2 +1,2 @@
1
- import { ModuleFederationConfig } from '@nx/devkit/src/utils/module-federation';
1
+ import { ModuleFederationConfig } from '@nx/webpack/src/utils/module-federation';
2
2
  export declare function withModuleFederationForSSR(options: ModuleFederationConfig): Promise<(config: any) => any>;
@@ -1,2 +1,2 @@
1
- import { ModuleFederationConfig } from '@nx/devkit/src/utils/module-federation';
1
+ import { ModuleFederationConfig } from '@nx/webpack/src/utils/module-federation';
2
2
  export declare function withModuleFederation(options: ModuleFederationConfig): Promise<(config: any) => any>;