@nx/angular 19.8.2 → 19.8.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.8.
|
3
|
+
"version": "19.8.4",
|
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": {
|
@@ -80,14 +80,14 @@
|
|
80
80
|
"webpack-merge": "^5.8.0",
|
81
81
|
"webpack": "^5.88.0",
|
82
82
|
"@module-federation/enhanced": "~0.6.0",
|
83
|
-
"@nx/devkit": "19.8.
|
84
|
-
"@nx/js": "19.8.
|
85
|
-
"@nx/eslint": "19.8.
|
86
|
-
"@nx/webpack": "19.8.
|
87
|
-
"@nx/web": "19.8.
|
88
|
-
"@nx/workspace": "19.8.
|
83
|
+
"@nx/devkit": "19.8.4",
|
84
|
+
"@nx/js": "19.8.4",
|
85
|
+
"@nx/eslint": "19.8.4",
|
86
|
+
"@nx/webpack": "19.8.4",
|
87
|
+
"@nx/web": "19.8.4",
|
88
|
+
"@nx/workspace": "19.8.4",
|
89
89
|
"piscina": "^4.4.0",
|
90
|
-
"@nrwl/angular": "19.8.
|
90
|
+
"@nrwl/angular": "19.8.4"
|
91
91
|
},
|
92
92
|
"peerDependencies": {
|
93
93
|
"@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
|
@@ -16,11 +16,11 @@ async function mergeCustomWebpackConfig(baseWebpackConfig, pathToWebpackConfig,
|
|
16
16
|
// `module.exports = new Promise(...)`. If it exports a single object, but not a Promise,
|
17
17
|
// then await will just resolve that object.
|
18
18
|
const config = await customWebpackConfiguration;
|
19
|
-
// The extra Webpack configuration file can export a synchronous or asynchronous function,
|
20
|
-
// for instance: `module.exports = async config => { ... }`.
|
21
19
|
let newConfig;
|
22
20
|
if (typeof config === 'function') {
|
23
|
-
|
21
|
+
// The extra Webpack configuration file can export a synchronous or asynchronous function,
|
22
|
+
// for instance: `module.exports = async config => { ... }`.
|
23
|
+
newConfig = await config(baseWebpackConfig, options, target);
|
24
24
|
}
|
25
25
|
else {
|
26
26
|
newConfig = (0, webpack_merge_1.merge)(baseWebpackConfig, config);
|
@@ -2,13 +2,15 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.addAngularEsLintDependencies = addAngularEsLintDependencies;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
|
+
const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
|
6
|
+
const versions_1 = require("@nx/eslint/src/utils/versions");
|
5
7
|
const version_utils_1 = require("../../utils/version-utils");
|
6
8
|
const buildable_project_1 = require("./buildable-project");
|
7
|
-
const flat_config_1 = require("@nx/eslint/src/utils/flat-config");
|
8
9
|
function addAngularEsLintDependencies(tree, projectName) {
|
9
10
|
const compatVersions = (0, version_utils_1.versions)(tree);
|
10
11
|
const angularEslintVersionToInstall = compatVersions.angularEslintVersion;
|
11
|
-
const
|
12
|
+
const usesEslintFlatConfig = (0, flat_config_1.useFlatConfig)(tree);
|
13
|
+
const devDependencies = usesEslintFlatConfig
|
12
14
|
? {
|
13
15
|
'angular-eslint': angularEslintVersionToInstall,
|
14
16
|
}
|
@@ -18,8 +20,9 @@ function addAngularEsLintDependencies(tree, projectName) {
|
|
18
20
|
'@angular-eslint/template-parser': angularEslintVersionToInstall,
|
19
21
|
};
|
20
22
|
if ('typescriptEslintVersion' in compatVersions) {
|
21
|
-
devDependencies['@typescript-eslint/utils'] =
|
22
|
-
|
23
|
+
devDependencies['@typescript-eslint/utils'] = usesEslintFlatConfig
|
24
|
+
? versions_1.eslint9__typescriptESLintVersion
|
25
|
+
: compatVersions.typescriptEslintVersion;
|
23
26
|
}
|
24
27
|
if ((0, buildable_project_1.isBuildableLibraryProject)(tree, projectName)) {
|
25
28
|
const jsoncEslintParserVersionToInstall = (0, version_utils_1.versions)(tree).jsoncEslintParserVersion;
|