@nx/angular 19.2.2 → 19.3.0-canary.20240606-bccb2c5
Sign up to get free protection for your applications and to get access to all the features.
- package/migrations.json +0 -9
- package/package.json +8 -8
- package/src/executors/module-federation-dev-server/schema.json +1 -1
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +1 -6
- package/src/utils/backward-compatible-versions.d.ts +2 -2
- package/src/utils/versions.d.ts +0 -1
- package/src/utils/versions.js +1 -2
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.d.ts +0 -3
- package/src/migrations/update-19-2-1/add-typescript-eslint-utils.js +0 -19
package/migrations.json
CHANGED
@@ -395,15 +395,6 @@
|
|
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"
|
407
398
|
}
|
408
399
|
},
|
409
400
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.3.0-canary.20240606-bccb2c5",
|
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.
|
83
|
-
"@nx/js": "19.
|
84
|
-
"@nx/eslint": "19.
|
85
|
-
"@nx/webpack": "19.
|
86
|
-
"@nx/web": "19.
|
87
|
-
"@nx/workspace": "19.
|
82
|
+
"@nx/devkit": "19.3.0-canary.20240606-bccb2c5",
|
83
|
+
"@nx/js": "19.3.0-canary.20240606-bccb2c5",
|
84
|
+
"@nx/eslint": "19.3.0-canary.20240606-bccb2c5",
|
85
|
+
"@nx/webpack": "19.3.0-canary.20240606-bccb2c5",
|
86
|
+
"@nx/web": "19.3.0-canary.20240606-bccb2c5",
|
87
|
+
"@nx/workspace": "19.3.0-canary.20240606-bccb2c5",
|
88
88
|
"piscina": "^4.4.0",
|
89
|
-
"@nrwl/angular": "19.
|
89
|
+
"@nrwl/angular": "19.3.0-canary.20240606-bccb2c5"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
92
92
|
"@angular-devkit/build-angular": ">= 16.0.0 < 19.0.0",
|
@@ -139,7 +139,7 @@
|
|
139
139
|
"items": {
|
140
140
|
"type": "string"
|
141
141
|
},
|
142
|
-
"description": "List of remote applications to not automatically serve, either statically or in development mode. This will not remove the remotes from the `module-federation.config` file, and therefore the application may still try to fetch these remotes.\nThis option is useful
|
142
|
+
"description": "List of remote applications to not automatically serve, either statically or in development mode. This will not remove the remotes from the `module-federation.config` file, and therefore the application may still try to fetch these remotes.\nThis option is useful for when the `host` application is using a `remote` that does not live in the same workspace as the `host`."
|
143
143
|
},
|
144
144
|
"pathToManifestFile": {
|
145
145
|
"type": "string",
|
@@ -5,17 +5,12 @@ 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
|
9
|
-
const angularEslintVersionToInstall = compatVersions.angularEslintVersion;
|
8
|
+
const angularEslintVersionToInstall = (0, version_utils_1.versions)(tree).angularEslintVersion;
|
10
9
|
const devDependencies = {
|
11
10
|
'@angular-eslint/eslint-plugin': angularEslintVersionToInstall,
|
12
11
|
'@angular-eslint/eslint-plugin-template': angularEslintVersionToInstall,
|
13
12
|
'@angular-eslint/template-parser': angularEslintVersionToInstall,
|
14
13
|
};
|
15
|
-
if ('typescriptEslintVersion' in compatVersions) {
|
16
|
-
devDependencies['@typescript-eslint/utils'] =
|
17
|
-
compatVersions.typescriptEslintVersion;
|
18
|
-
}
|
19
14
|
if ((0, buildable_project_1.isBuildableLibraryProject)(tree, projectName)) {
|
20
15
|
const jsoncEslintParserVersionToInstall = (0, version_utils_1.versions)(tree).jsoncEslintParserVersion;
|
21
16
|
devDependencies['jsonc-eslint-parser'] = jsoncEslintParserVersionToInstall;
|
@@ -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<
|
8
|
-
angularV17: Record<Exclude<CompatPackageVersionNames, 'ngUniversalVersion'
|
7
|
+
angularV16: Record<CompatPackageVersionNames, string>;
|
8
|
+
angularV17: Record<Exclude<CompatPackageVersionNames, 'ngUniversalVersion'>, 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,7 +14,6 @@ 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";
|
18
17
|
export declare const tailwindVersion = "^3.0.2";
|
19
18
|
export declare const postcssVersion = "^8.4.5";
|
20
19
|
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.
|
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;
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
5
5
|
exports.angularVersion = '~18.0.0';
|
6
6
|
exports.angularDevkitVersion = '~18.0.0';
|
@@ -17,7 +17,6 @@ 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';
|
21
20
|
exports.tailwindVersion = '^3.0.2';
|
22
21
|
exports.postcssVersion = '^8.4.5';
|
23
22
|
exports.postcssUrlVersion = '~10.1.3';
|
@@ -1,19 +0,0 @@
|
|
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;
|