@nx/angular 19.0.0-canary.20240502-5ded713 → 19.0.0-canary.20240504-fd5ea92
Sign up to get free protection for your applications and to get access to all the features.
package/executors.d.ts
CHANGED
@@ -11,6 +11,6 @@ export * from './src/executors/extract-i18n/extract-i18n.impl';
|
|
11
11
|
import { executeDevServerBuilder } from './src/builders/dev-server/dev-server.impl';
|
12
12
|
export {
|
13
13
|
/**
|
14
|
-
* @deprecated Use executeDevServerBuilder instead. It will be removed in Nx
|
14
|
+
* @deprecated Use executeDevServerBuilder instead. It will be removed in Nx v20.
|
15
15
|
*/
|
16
16
|
executeDevServerBuilder as executeWebpackDevServerBuilder, executeDevServerBuilder, };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.0.0-canary.
|
3
|
+
"version": "19.0.0-canary.20240504-fd5ea92",
|
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.0-canary.
|
82
|
-
"@nx/js": "19.0.0-canary.
|
83
|
-
"@nx/eslint": "19.0.0-canary.
|
84
|
-
"@nx/webpack": "19.0.0-canary.
|
85
|
-
"@nx/web": "19.0.0-canary.
|
86
|
-
"@nx/workspace": "19.0.0-canary.
|
81
|
+
"@nx/devkit": "19.0.0-canary.20240504-fd5ea92",
|
82
|
+
"@nx/js": "19.0.0-canary.20240504-fd5ea92",
|
83
|
+
"@nx/eslint": "19.0.0-canary.20240504-fd5ea92",
|
84
|
+
"@nx/webpack": "19.0.0-canary.20240504-fd5ea92",
|
85
|
+
"@nx/web": "19.0.0-canary.20240504-fd5ea92",
|
86
|
+
"@nx/workspace": "19.0.0-canary.20240504-fd5ea92",
|
87
87
|
"piscina": "^4.4.0",
|
88
|
-
"@nrwl/angular": "19.0.0-canary.
|
88
|
+
"@nrwl/angular": "19.0.0-canary.20240504-fd5ea92"
|
89
89
|
},
|
90
90
|
"peerDependencies": {
|
91
91
|
"@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
|
@@ -10,7 +10,7 @@ async function initializeNgPackgrLite(options, context, projectDependencies) {
|
|
10
10
|
const ngPackagr = await (0, ng_packagr_1.getNgPackagrInstance)(options);
|
11
11
|
ngPackagr.forProject((0, path_1.resolve)(context.root, options.project));
|
12
12
|
if (options.tsConfig) {
|
13
|
-
const remappedTsConfigFilePath = (0, buildable_libs_utils_1.createTmpTsConfig)(options.tsConfig, context.root, context.projectsConfigurations.projects[context.projectName].root, projectDependencies);
|
13
|
+
const remappedTsConfigFilePath = (0, buildable_libs_utils_1.createTmpTsConfig)((0, path_1.join)(context.root, options.tsConfig), context.root, context.projectsConfigurations.projects[context.projectName].root, projectDependencies);
|
14
14
|
const tsConfig = await (0, typescript_1.parseRemappedTsConfigAndMergeDefaults)(context.root, options.tsConfig, remappedTsConfigFilePath);
|
15
15
|
ngPackagr.withTsConfig(tsConfig);
|
16
16
|
}
|
@@ -12,7 +12,7 @@ async function initializeNgPackagr(options, context, projectDependencies) {
|
|
12
12
|
const ngPackagr = await (0, ng_packagr_1.getNgPackagrInstance)(options);
|
13
13
|
ngPackagr.forProject((0, path_1.resolve)(context.root, options.project));
|
14
14
|
if (options.tsConfig) {
|
15
|
-
const remappedTsConfigFilePath = (0, buildable_libs_utils_1.createTmpTsConfig)(options.tsConfig, context.root, context.projectsConfigurations.projects[context.projectName].root, projectDependencies);
|
15
|
+
const remappedTsConfigFilePath = (0, buildable_libs_utils_1.createTmpTsConfig)((0, path_1.join)(context.root, options.tsConfig), context.root, context.projectsConfigurations.projects[context.projectName].root, projectDependencies);
|
16
16
|
const tsConfig = await (0, typescript_1.parseRemappedTsConfigAndMergeDefaults)(context.root, options.tsConfig, remappedTsConfigFilePath);
|
17
17
|
ngPackagr.withTsConfig(tsConfig);
|
18
18
|
}
|
@@ -14,8 +14,8 @@ async function default_1(tree) {
|
|
14
14
|
const configToUpdate = configurationName
|
15
15
|
? projectConfiguration.targets[targetName].configurations[configurationName]
|
16
16
|
: projectConfiguration.targets[targetName].options;
|
17
|
-
if (configToUpdate
|
18
|
-
configToUpdate
|
17
|
+
if (configToUpdate?.buildOptimizer === undefined &&
|
18
|
+
configToUpdate?.optimization !== undefined) {
|
19
19
|
configToUpdate.buildOptimizer = !!configToUpdate.optimization;
|
20
20
|
}
|
21
21
|
(0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfiguration);
|