@nx/angular 17.2.4 → 17.2.6
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 +10 -10
- package/src/builders/dev-server/dev-server.impl.js +2 -0
- package/src/builders/webpack-browser/webpack-browser.impl.js +2 -0
- package/src/builders/webpack-server/webpack-server.impl.js +2 -0
- package/src/executors/module-federation-dev-server/lib/normalize-options.js +3 -0
- package/src/executors/module-federation-dev-server/schema.d.ts +1 -0
- package/src/executors/module-federation-dev-server/schema.json +5 -0
- package/src/generators/setup-ssr/lib/update-project-config.js +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/angular",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.6",
|
|
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,15 +78,15 @@
|
|
|
78
78
|
"tslib": "^2.3.0",
|
|
79
79
|
"webpack": "^5.80.0",
|
|
80
80
|
"webpack-merge": "^5.8.0",
|
|
81
|
-
"@nx/devkit": "17.2.
|
|
82
|
-
"@nx/cypress": "17.2.
|
|
83
|
-
"@nx/jest": "17.2.
|
|
84
|
-
"@nx/js": "17.2.
|
|
85
|
-
"@nx/eslint": "17.2.
|
|
86
|
-
"@nx/webpack": "17.2.
|
|
87
|
-
"@nx/web": "17.2.
|
|
88
|
-
"@nx/workspace": "17.2.
|
|
89
|
-
"@nrwl/angular": "17.2.
|
|
81
|
+
"@nx/devkit": "17.2.6",
|
|
82
|
+
"@nx/cypress": "17.2.6",
|
|
83
|
+
"@nx/jest": "17.2.6",
|
|
84
|
+
"@nx/js": "17.2.6",
|
|
85
|
+
"@nx/eslint": "17.2.6",
|
|
86
|
+
"@nx/webpack": "17.2.6",
|
|
87
|
+
"@nx/web": "17.2.6",
|
|
88
|
+
"@nx/workspace": "17.2.6",
|
|
89
|
+
"@nrwl/angular": "17.2.6"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
|
|
@@ -38,6 +38,8 @@ function executeDevServerBuilder(rawOptions, context) {
|
|
|
38
38
|
const buildLibsFromSource = options.buildLibsFromSource ??
|
|
39
39
|
buildTargetOptions.buildLibsFromSource ??
|
|
40
40
|
true;
|
|
41
|
+
process.env.NX_BUILD_LIBS_FROM_SOURCE = `${buildLibsFromSource}`;
|
|
42
|
+
process.env.NX_BUILD_TARGET = options.buildTarget;
|
|
41
43
|
let pathToWebpackConfig;
|
|
42
44
|
if (buildTargetOptions.customWebpackConfig?.path) {
|
|
43
45
|
pathToWebpackConfig = (0, devkit_1.joinPathFragments)(context.workspaceRoot, buildTargetOptions.customWebpackConfig.path);
|
|
@@ -25,6 +25,8 @@ function shouldSkipInitialTargetRun(projectGraph, project, target) {
|
|
|
25
25
|
function executeWebpackBrowserBuilder(options, context) {
|
|
26
26
|
options.buildLibsFromSource ??= true;
|
|
27
27
|
const { buildLibsFromSource, customWebpackConfig, indexFileTransformer, ...delegateBuilderOptions } = options;
|
|
28
|
+
process.env.NX_BUILD_LIBS_FROM_SOURCE = `${buildLibsFromSource}`;
|
|
29
|
+
process.env.NX_BUILD_TARGET = (0, devkit_1.targetToTargetString)({ ...context.target });
|
|
28
30
|
const pathToWebpackConfig = customWebpackConfig?.path &&
|
|
29
31
|
(0, devkit_1.joinPathFragments)(context.workspaceRoot, customWebpackConfig.path);
|
|
30
32
|
if (pathToWebpackConfig && !(0, fs_1.existsSync)(pathToWebpackConfig)) {
|
|
@@ -49,6 +49,8 @@ function buildServerAppWithCustomWebpackConfiguration(options, context, pathToWe
|
|
|
49
49
|
function executeWebpackServerBuilder(options, context) {
|
|
50
50
|
(0, validate_options_1.validateOptions)(options);
|
|
51
51
|
options.buildLibsFromSource ??= true;
|
|
52
|
+
process.env.NX_BUILD_LIBS_FROM_SOURCE = `${options.buildLibsFromSource}`;
|
|
53
|
+
process.env.NX_BUILD_TARGET = (0, devkit_1.targetToTargetString)({ ...context.target });
|
|
52
54
|
if (!options.buildLibsFromSource) {
|
|
53
55
|
const { tsConfigPath } = (0, buildable_libs_1.createTmpTsConfigForBuildableLibs)(options.tsConfig, context);
|
|
54
56
|
options.tsConfig = (0, devkit_1.normalizePath)((0, path_1.relative)(context.workspaceRoot, tsConfigPath));
|
|
@@ -7,6 +7,9 @@ function normalizeOptions(schema) {
|
|
|
7
7
|
buildTarget ??= schema.browserTarget;
|
|
8
8
|
delete schema.browserTarget;
|
|
9
9
|
}
|
|
10
|
+
schema.buildLibsFromSource ??= true;
|
|
11
|
+
process.env.NX_BUILD_LIBS_FROM_SOURCE = `${schema.buildLibsFromSource}`;
|
|
12
|
+
process.env.NX_BUILD_TARGET = `${buildTarget}`;
|
|
10
13
|
return {
|
|
11
14
|
...schema,
|
|
12
15
|
buildTarget,
|
|
@@ -145,6 +145,11 @@
|
|
|
145
145
|
"staticRemotesPort": {
|
|
146
146
|
"type": "number",
|
|
147
147
|
"description": "The port at which to serve the file-server for the static remotes."
|
|
148
|
+
},
|
|
149
|
+
"buildLibsFromSource": {
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"description": "Read buildable libraries from source instead of building them separately. If not set, it will take the value specified in the `browserTarget` options, or it will default to `true` if it's also not set in the `browserTarget` options.",
|
|
152
|
+
"x-priority": "important"
|
|
148
153
|
}
|
|
149
154
|
},
|
|
150
155
|
"additionalProperties": false,
|
|
@@ -77,13 +77,9 @@ function updateProjectConfigForBrowserBuilder(tree, schema) {
|
|
|
77
77
|
};
|
|
78
78
|
(0, devkit_1.updateProjectConfiguration)(tree, schema.project, projectConfig);
|
|
79
79
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
80
|
-
if (nxJson.tasksRunnerOptions?.default &&
|
|
80
|
+
if (nxJson.tasksRunnerOptions?.default?.options?.cacheableOperations &&
|
|
81
81
|
!nxJson.tasksRunnerOptions.default.options.cacheableOperations.includes('server')) {
|
|
82
|
-
nxJson.tasksRunnerOptions.default.options.cacheableOperations
|
|
83
|
-
...nxJson.tasksRunnerOptions.default.options.cacheableOperations,
|
|
84
|
-
'server',
|
|
85
|
-
];
|
|
86
|
-
(0, devkit_1.updateNxJson)(tree, nxJson);
|
|
82
|
+
nxJson.tasksRunnerOptions.default.options.cacheableOperations.push('server');
|
|
87
83
|
}
|
|
88
84
|
nxJson.targetDefaults ??= {};
|
|
89
85
|
nxJson.targetDefaults.server ??= {};
|