@nx/angular 21.2.0-canary.20250604-283ec76 → 21.2.0-canary.20250606-c43d2f2
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/README.md
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
# Nx: Smart Repos · Fast Builds
|
24
24
|
|
25
|
-
|
25
|
+
An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
|
26
26
|
|
27
27
|
This package is an [Angular plugin for Nx](https://nx.dev/nx-api/angular).
|
28
28
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "21.2.0-canary.
|
3
|
+
"version": "21.2.0-canary.20250606-c43d2f2",
|
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": {
|
@@ -58,14 +58,14 @@
|
|
58
58
|
"migrations": "./migrations.json"
|
59
59
|
},
|
60
60
|
"dependencies": {
|
61
|
-
"@nx/devkit": "21.2.0-canary.
|
62
|
-
"@nx/eslint": "21.2.0-canary.
|
63
|
-
"@nx/js": "21.2.0-canary.
|
64
|
-
"@nx/module-federation": "21.2.0-canary.
|
65
|
-
"@nx/rspack": "21.2.0-canary.
|
66
|
-
"@nx/web": "21.2.0-canary.
|
67
|
-
"@nx/webpack": "21.2.0-canary.
|
68
|
-
"@nx/workspace": "21.2.0-canary.
|
61
|
+
"@nx/devkit": "21.2.0-canary.20250606-c43d2f2",
|
62
|
+
"@nx/eslint": "21.2.0-canary.20250606-c43d2f2",
|
63
|
+
"@nx/js": "21.2.0-canary.20250606-c43d2f2",
|
64
|
+
"@nx/module-federation": "21.2.0-canary.20250606-c43d2f2",
|
65
|
+
"@nx/rspack": "21.2.0-canary.20250606-c43d2f2",
|
66
|
+
"@nx/web": "21.2.0-canary.20250606-c43d2f2",
|
67
|
+
"@nx/webpack": "21.2.0-canary.20250606-c43d2f2",
|
68
|
+
"@nx/workspace": "21.2.0-canary.20250606-c43d2f2",
|
69
69
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
70
70
|
"@typescript-eslint/type-utils": "^8.0.0",
|
71
71
|
"enquirer": "~2.3.6",
|
@@ -14,6 +14,16 @@ const node_path_1 = require("node:path");
|
|
14
14
|
const ng_packagr_version_1 = require("../../../../utilities/ng-packagr/ng-packagr-version");
|
15
15
|
const package_imports_1 = require("../../../../utilities/ng-packagr/package-imports");
|
16
16
|
const entry_point_1 = require("./entry-point");
|
17
|
+
async function shouldWriteFile(filePath, newContent) {
|
18
|
+
try {
|
19
|
+
const existingContent = await (0, promises_1.readFile)(filePath, 'utf-8');
|
20
|
+
return existingContent !== newContent;
|
21
|
+
}
|
22
|
+
catch (error) {
|
23
|
+
// If we can't read the existing file (including if it doesn't exist), write the new one
|
24
|
+
return true;
|
25
|
+
}
|
26
|
+
}
|
17
27
|
const writeBundlesTransform = (_options) => {
|
18
28
|
const { major: ngPackagrMajorVersion } = (0, ng_packagr_version_1.getNgPackagrVersionInfo)();
|
19
29
|
const { BuildGraph } = (0, package_imports_1.importNgPackagrPath)('ng-packagr/src/lib/graph/build-graph', ngPackagrMajorVersion);
|
@@ -29,9 +39,11 @@ const writeBundlesTransform = (_options) => {
|
|
29
39
|
entry.data.destinationFiles = entryPoint.destinationFiles;
|
30
40
|
for (const [path, outputCache] of entry.cache.outputCache.entries()) {
|
31
41
|
const normalizedPath = normalizeEsm2022Path(path, entryPoint);
|
32
|
-
// write
|
33
|
-
|
34
|
-
|
42
|
+
// Only write if content has changed
|
43
|
+
if (await shouldWriteFile(normalizedPath, outputCache.content)) {
|
44
|
+
await (0, promises_1.mkdir)((0, node_path_1.dirname)(normalizedPath), { recursive: true });
|
45
|
+
await (0, promises_1.writeFile)(normalizedPath, outputCache.content);
|
46
|
+
}
|
35
47
|
}
|
36
48
|
if (!entry.cache.outputCache.size && entryPoint.isSecondaryEntryPoint) {
|
37
49
|
await (0, promises_1.mkdir)(entryPoint.destinationPath, { recursive: true });
|