@nx/angular 19.2.0 → 19.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +9 -0
- package/package.json +8 -8
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +6 -1
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.d.ts +3 -0
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.js +19 -0
- package/src/utils/backward-compatible-versions.d.ts +2 -2
- package/src/utils/versions.d.ts +1 -0
- package/src/utils/versions.js +2 -1
package/migrations.json
CHANGED
@@ -395,6 +395,15 @@
|
|
395
395
|
},
|
396
396
|
"description": "Update the @angular/cli package version to ~18.0.0.",
|
397
397
|
"factory": "./src/migrations/update-19-1-0/update-angular-cli"
|
398
|
+
},
|
399
|
+
"add-typescript-eslint-utils": {
|
400
|
+
"cli": "nx",
|
401
|
+
"version": "19.2.1-beta.0",
|
402
|
+
"requires": {
|
403
|
+
"@angular-eslint/eslint-plugin": ">=18.0.0"
|
404
|
+
},
|
405
|
+
"description": "Installs the '@typescript-eslint/utils' package when having installed '@angular-eslint/eslint-plugin' or '@angular-eslint/eslint-plugin-template' with version >=18.0.0.",
|
406
|
+
"factory": "./src/migrations/update-19-2-1/add-typescript-eslint-utils"
|
398
407
|
}
|
399
408
|
},
|
400
409
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.2.
|
3
|
+
"version": "19.2.1",
|
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": {
|
@@ -79,14 +79,14 @@
|
|
79
79
|
"tslib": "^2.3.0",
|
80
80
|
"webpack": "^5.80.0",
|
81
81
|
"webpack-merge": "^5.8.0",
|
82
|
-
"@nx/devkit": "19.2.
|
83
|
-
"@nx/js": "19.2.
|
84
|
-
"@nx/eslint": "19.2.
|
85
|
-
"@nx/webpack": "19.2.
|
86
|
-
"@nx/web": "19.2.
|
87
|
-
"@nx/workspace": "19.2.
|
82
|
+
"@nx/devkit": "19.2.1",
|
83
|
+
"@nx/js": "19.2.1",
|
84
|
+
"@nx/eslint": "19.2.1",
|
85
|
+
"@nx/webpack": "19.2.1",
|
86
|
+
"@nx/web": "19.2.1",
|
87
|
+
"@nx/workspace": "19.2.1",
|
88
88
|
"piscina": "^4.4.0",
|
89
|
-
"@nrwl/angular": "19.2.
|
89
|
+
"@nrwl/angular": "19.2.1"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
92
92
|
"@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
|
@@ -5,12 +5,17 @@ const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const version_utils_1 = require("../../utils/version-utils");
|
6
6
|
const buildable_project_1 = require("./buildable-project");
|
7
7
|
function addAngularEsLintDependencies(tree, projectName) {
|
8
|
-
const
|
8
|
+
const compatVersions = (0, version_utils_1.versions)(tree);
|
9
|
+
const angularEslintVersionToInstall = compatVersions.angularEslintVersion;
|
9
10
|
const devDependencies = {
|
10
11
|
'@angular-eslint/eslint-plugin': angularEslintVersionToInstall,
|
11
12
|
'@angular-eslint/eslint-plugin-template': angularEslintVersionToInstall,
|
12
13
|
'@angular-eslint/template-parser': angularEslintVersionToInstall,
|
13
14
|
};
|
15
|
+
if ('typescriptEslintVersion' in compatVersions) {
|
16
|
+
devDependencies['@typescript-eslint/utils'] =
|
17
|
+
compatVersions.typescriptEslintVersion;
|
18
|
+
}
|
14
19
|
if ((0, buildable_project_1.isBuildableLibraryProject)(tree, projectName)) {
|
15
20
|
const jsoncEslintParserVersionToInstall = (0, version_utils_1.versions)(tree).jsoncEslintParserVersion;
|
16
21
|
devDependencies['jsonc-eslint-parser'] = jsoncEslintParserVersionToInstall;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.typescriptEslintUtilsVersion = void 0;
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
5
|
+
const version_utils_1 = require("../../generators/utils/version-utils");
|
6
|
+
exports.typescriptEslintUtilsVersion = '^8.0.0-alpha.28';
|
7
|
+
async function default_1(tree) {
|
8
|
+
if ((0, version_utils_1.getInstalledPackageVersion)(tree, '@typescript-eslint/utils')) {
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
const eslintPluginVersionInfo = (0, version_utils_1.getInstalledPackageVersionInfo)(tree, '@angular-eslint/eslint-plugin') ??
|
12
|
+
(0, version_utils_1.getInstalledPackageVersionInfo)(tree, '@angular-eslint/eslint-plugin-template');
|
13
|
+
if (!eslintPluginVersionInfo || eslintPluginVersionInfo.major < 18) {
|
14
|
+
return;
|
15
|
+
}
|
16
|
+
(0, devkit_1.addDependenciesToPackageJson)(tree, {}, { '@typescript-eslint/utils': exports.typescriptEslintUtilsVersion });
|
17
|
+
await (0, devkit_1.formatFiles)(tree);
|
18
|
+
}
|
19
|
+
exports.default = default_1;
|
@@ -4,8 +4,8 @@ type LatestPackageVersionNames = Exclude<keyof typeof latestVersions, 'nxVersion
|
|
4
4
|
type CompatPackageVersionNames = LatestPackageVersionNames | 'ngUniversalVersion';
|
5
5
|
export type PackageVersionNames = LatestPackageVersionNames | CompatPackageVersionNames;
|
6
6
|
export type VersionMap = {
|
7
|
-
angularV16: Record<CompatPackageVersionNames, string>;
|
8
|
-
angularV17: Record<Exclude<CompatPackageVersionNames, 'ngUniversalVersion'>, string>;
|
7
|
+
angularV16: Record<Exclude<CompatPackageVersionNames, 'typescriptEslintVersion'>, string>;
|
8
|
+
angularV17: Record<Exclude<CompatPackageVersionNames, 'ngUniversalVersion' | 'typescriptEslintVersion'>, string>;
|
9
9
|
};
|
10
10
|
export type PackageLatestVersions = Record<LatestPackageVersionNames, string>;
|
11
11
|
export type PackageCompatVersions = VersionMap[SupportedVersions];
|
package/src/utils/versions.d.ts
CHANGED
@@ -14,6 +14,7 @@ export declare const typesExpressVersion = "4.17.14";
|
|
14
14
|
export declare const browserSyncVersion = "^3.0.0";
|
15
15
|
export declare const moduleFederationNodeVersion = "~1.0.5";
|
16
16
|
export declare const angularEslintVersion = "^18.0.1";
|
17
|
+
export declare const typescriptEslintVersion = "^8.0.0-alpha.28";
|
17
18
|
export declare const tailwindVersion = "^3.0.2";
|
18
19
|
export declare const postcssVersion = "^8.4.5";
|
19
20
|
export declare const postcssUrlVersion = "~10.1.3";
|
package/src/utils/versions.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.jsoncEslintParserVersion = exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.jestPresetAngularVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssVersion = exports.tailwindVersion = exports.angularEslintVersion = exports.moduleFederationNodeVersion = exports.browserSyncVersion = exports.typesExpressVersion = exports.expressVersion = exports.typesCorsVersion = exports.corsVersion = exports.tsLibVersion = exports.angularJsVersion = exports.zoneJsVersion = exports.rxjsVersion = exports.ngrxVersion = exports.ngPackagrVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
|
3
|
+
exports.jsoncEslintParserVersion = exports.jasmineMarblesVersion = exports.typesNodeVersion = exports.jestPresetAngularVersion = exports.tsNodeVersion = exports.autoprefixerVersion = exports.postcssUrlVersion = exports.postcssVersion = exports.tailwindVersion = exports.typescriptEslintVersion = exports.angularEslintVersion = exports.moduleFederationNodeVersion = exports.browserSyncVersion = exports.typesExpressVersion = exports.expressVersion = exports.typesCorsVersion = exports.corsVersion = exports.tsLibVersion = exports.angularJsVersion = exports.zoneJsVersion = exports.rxjsVersion = exports.ngrxVersion = exports.ngPackagrVersion = exports.angularDevkitVersion = exports.angularVersion = exports.nxVersion = void 0;
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
5
5
|
exports.angularVersion = '~18.0.0';
|
6
6
|
exports.angularDevkitVersion = '~18.0.0';
|
@@ -17,6 +17,7 @@ exports.typesExpressVersion = '4.17.14';
|
|
17
17
|
exports.browserSyncVersion = '^3.0.0';
|
18
18
|
exports.moduleFederationNodeVersion = '~1.0.5';
|
19
19
|
exports.angularEslintVersion = '^18.0.1';
|
20
|
+
exports.typescriptEslintVersion = '^8.0.0-alpha.28';
|
20
21
|
exports.tailwindVersion = '^3.0.2';
|
21
22
|
exports.postcssVersion = '^8.4.5';
|
22
23
|
exports.postcssUrlVersion = '~10.1.3';
|