@nx/angular 19.0.2 → 19.0.3
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 +8 -8
- package/src/generators/host/host.js +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.3",
|
|
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.0.
|
|
82
|
-
"@nx/js": "19.0.
|
|
83
|
-
"@nx/eslint": "19.0.
|
|
84
|
-
"@nx/webpack": "19.0.
|
|
85
|
-
"@nx/web": "19.0.
|
|
86
|
-
"@nx/workspace": "19.0.
|
|
81
|
+
"@nx/devkit": "19.0.3",
|
|
82
|
+
"@nx/js": "19.0.3",
|
|
83
|
+
"@nx/eslint": "19.0.3",
|
|
84
|
+
"@nx/webpack": "19.0.3",
|
|
85
|
+
"@nx/web": "19.0.3",
|
|
86
|
+
"@nx/workspace": "19.0.3",
|
|
87
87
|
"piscina": "^4.4.0",
|
|
88
|
-
"@nrwl/angular": "19.0.
|
|
88
|
+
"@nrwl/angular": "19.0.3"
|
|
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)) {
|