@nx/angular 19.1.0-canary.20240509-8f705e3 → 19.1.0-canary.20240510-1a85787

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "19.1.0-canary.20240509-8f705e3",
3
+ "version": "19.1.0-canary.20240510-1a85787",
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, Playwright 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": {
@@ -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": "19.1.0-canary.20240509-8f705e3",
82
- "@nx/js": "19.1.0-canary.20240509-8f705e3",
83
- "@nx/eslint": "19.1.0-canary.20240509-8f705e3",
84
- "@nx/webpack": "19.1.0-canary.20240509-8f705e3",
85
- "@nx/web": "19.1.0-canary.20240509-8f705e3",
86
- "@nx/workspace": "19.1.0-canary.20240509-8f705e3",
81
+ "@nx/devkit": "19.1.0-canary.20240510-1a85787",
82
+ "@nx/js": "19.1.0-canary.20240510-1a85787",
83
+ "@nx/eslint": "19.1.0-canary.20240510-1a85787",
84
+ "@nx/webpack": "19.1.0-canary.20240510-1a85787",
85
+ "@nx/web": "19.1.0-canary.20240510-1a85787",
86
+ "@nx/workspace": "19.1.0-canary.20240510-1a85787",
87
87
  "piscina": "^4.4.0",
88
- "@nrwl/angular": "19.1.0-canary.20240509-8f705e3"
88
+ "@nrwl/angular": "19.1.0-canary.20240510-1a85787"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
@@ -9,6 +9,7 @@ const remote_1 = require("../remote/remote");
9
9
  const setup_mf_1 = require("../setup-mf/setup-mf");
10
10
  const lib_1 = require("./lib");
11
11
  const add_mf_env_to_inputs_1 = require("../utils/add-mf-env-to-inputs");
12
+ const js_1 = require("@nx/js");
12
13
  async function host(tree, options) {
13
14
  return await hostInternal(tree, {
14
15
  projectNameAndRootFormat: 'derived',
@@ -22,6 +23,16 @@ async function hostInternal(tree, schema) {
22
23
  const projects = (0, devkit_1.getProjects)(tree);
23
24
  const remotesToGenerate = [];
24
25
  const remotesToIntegrate = [];
26
+ // Check to see if remotes are provided and also check if --dynamic is provided
27
+ // if both are check that the remotes are valid names else throw an error.
28
+ if (options.dynamic && options.remotes?.length > 0) {
29
+ options.remotes.forEach((remote) => {
30
+ const isValidRemote = (0, js_1.isValidVariable)(remote);
31
+ if (!isValidRemote.isValid) {
32
+ throw new Error(`Invalid remote name provided: ${remote}. ${isValidRemote.message}`);
33
+ }
34
+ });
35
+ }
25
36
  if (options.remotes && options.remotes.length > 0) {
26
37
  options.remotes.forEach((remote) => {
27
38
  if (!projects.has(remote)) {