@nx/angular 18.0.1 → 18.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.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, 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": {
|
|
@@ -78,16 +78,16 @@
|
|
|
78
78
|
"tslib": "^2.3.0",
|
|
79
79
|
"webpack": "^5.80.0",
|
|
80
80
|
"webpack-merge": "^5.8.0",
|
|
81
|
-
"@nx/devkit": "18.0.
|
|
82
|
-
"@nx/cypress": "18.0.
|
|
83
|
-
"@nx/jest": "18.0.
|
|
84
|
-
"@nx/js": "18.0.
|
|
85
|
-
"@nx/eslint": "18.0.
|
|
86
|
-
"@nx/webpack": "18.0.
|
|
87
|
-
"@nx/web": "18.0.
|
|
88
|
-
"@nx/workspace": "18.0.
|
|
81
|
+
"@nx/devkit": "18.0.3",
|
|
82
|
+
"@nx/cypress": "18.0.3",
|
|
83
|
+
"@nx/jest": "18.0.3",
|
|
84
|
+
"@nx/js": "18.0.3",
|
|
85
|
+
"@nx/eslint": "18.0.3",
|
|
86
|
+
"@nx/webpack": "18.0.3",
|
|
87
|
+
"@nx/web": "18.0.3",
|
|
88
|
+
"@nx/workspace": "18.0.3",
|
|
89
89
|
"piscina": "^4.2.1",
|
|
90
|
-
"@nrwl/angular": "18.0.
|
|
90
|
+
"@nrwl/angular": "18.0.3"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// is attached to the index.html with type=module
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.addCypressOnErrorWorkaround = void 0;
|
|
7
|
+
const config_1 = require("@nx/cypress/src/utils/config");
|
|
7
8
|
const devkit_1 = require("@nx/devkit");
|
|
8
9
|
function addCypressOnErrorWorkaround(tree, schema) {
|
|
9
10
|
if (!schema.e2eProjectName) {
|
|
@@ -22,8 +23,9 @@ function addCypressOnErrorWorkaround(tree, schema) {
|
|
|
22
23
|
`);
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
if (e2eProject.targets
|
|
26
|
-
e2eProject.
|
|
26
|
+
if (e2eProject.targets?.e2e?.executor !== '@nx/cypress:cypress' &&
|
|
27
|
+
!(0, devkit_1.glob)(tree, [`${e2eProject.root}/${config_1.CYPRESS_CONFIG_FILE_NAME_PATTERN}`])
|
|
28
|
+
.length) {
|
|
27
29
|
// Not a cypress e2e project, skip
|
|
28
30
|
return;
|
|
29
31
|
}
|
|
@@ -11,16 +11,16 @@ function fixBootstrap(tree, appRoot, options) {
|
|
|
11
11
|
else {
|
|
12
12
|
tree.write((0, devkit_1.joinPathFragments)(appRoot, 'src/bootstrap.ts'), bootstrapCode);
|
|
13
13
|
}
|
|
14
|
-
const bootstrapImportCode = `import('./bootstrap').catch(err => console.error(err))
|
|
14
|
+
const bootstrapImportCode = `import('./bootstrap').catch(err => console.error(err))`;
|
|
15
15
|
const fetchMFManifestCode = `import { setRemoteDefinitions } from '@nx/angular/mf';
|
|
16
16
|
|
|
17
17
|
fetch('/assets/module-federation.manifest.json')
|
|
18
18
|
.then((res) => res.json())
|
|
19
19
|
.then(definitions => setRemoteDefinitions(definitions))
|
|
20
|
-
.then(() => ${bootstrapImportCode})
|
|
20
|
+
.then(() => ${bootstrapImportCode});`;
|
|
21
21
|
tree.write(mainFilePath, options.mfType === 'host' && options.federationType === 'dynamic'
|
|
22
22
|
? fetchMFManifestCode
|
|
23
|
-
: bootstrapImportCode);
|
|
23
|
+
: `${bootstrapImportCode};`);
|
|
24
24
|
}
|
|
25
25
|
exports.fixBootstrap = fixBootstrap;
|
|
26
26
|
const standaloneBootstrapCode = () => `import { bootstrapApplication } from '@angular/platform-browser';
|