@nx/angular 20.0.0-beta.6 → 20.0.0-beta.8
Sign up to get free protection for your applications and to get access to all the features.
package/executors.d.ts
CHANGED
@@ -8,9 +8,4 @@ export * from './src/executors/browser-esbuild/browser-esbuild.impl';
|
|
8
8
|
export * from './src/executors/application/application.impl';
|
9
9
|
export * from './src/executors/extract-i18n/extract-i18n.impl';
|
10
10
|
export * from './src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl';
|
11
|
-
|
12
|
-
export {
|
13
|
-
/**
|
14
|
-
* @deprecated Use executeDevServerBuilder instead. It will be removed in Nx v20.
|
15
|
-
*/
|
16
|
-
executeDevServerBuilder as executeWebpackDevServerBuilder, executeDevServerBuilder, };
|
11
|
+
export { executeDevServerBuilder } from './src/builders/dev-server/dev-server.impl';
|
package/executors.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.executeDevServerBuilder =
|
3
|
+
exports.executeDevServerBuilder = void 0;
|
4
4
|
const tslib_1 = require("tslib");
|
5
5
|
tslib_1.__exportStar(require("./src/builders/webpack-browser/webpack-browser.impl"), exports);
|
6
6
|
tslib_1.__exportStar(require("./src/builders/webpack-server/webpack-server.impl"), exports);
|
@@ -12,6 +12,5 @@ tslib_1.__exportStar(require("./src/executors/browser-esbuild/browser-esbuild.im
|
|
12
12
|
tslib_1.__exportStar(require("./src/executors/application/application.impl"), exports);
|
13
13
|
tslib_1.__exportStar(require("./src/executors/extract-i18n/extract-i18n.impl"), exports);
|
14
14
|
tslib_1.__exportStar(require("./src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl"), exports);
|
15
|
-
|
16
|
-
Object.defineProperty(exports, "executeWebpackDevServerBuilder", { enumerable: true, get: function () { return dev_server_impl_1.executeDevServerBuilder; } });
|
15
|
+
var dev_server_impl_1 = require("./src/builders/dev-server/dev-server.impl");
|
17
16
|
Object.defineProperty(exports, "executeDevServerBuilder", { enumerable: true, get: function () { return dev_server_impl_1.executeDevServerBuilder; } });
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/angular",
|
3
|
-
"version": "20.0.0-beta.
|
3
|
+
"version": "20.0.0-beta.8",
|
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,12 +80,12 @@
|
|
80
80
|
"webpack-merge": "^5.8.0",
|
81
81
|
"webpack": "^5.88.0",
|
82
82
|
"@module-federation/enhanced": "0.6.6",
|
83
|
-
"@nx/devkit": "20.0.0-beta.
|
84
|
-
"@nx/js": "20.0.0-beta.
|
85
|
-
"@nx/eslint": "20.0.0-beta.
|
86
|
-
"@nx/webpack": "20.0.0-beta.
|
87
|
-
"@nx/web": "20.0.0-beta.
|
88
|
-
"@nx/workspace": "20.0.0-beta.
|
83
|
+
"@nx/devkit": "20.0.0-beta.8",
|
84
|
+
"@nx/js": "20.0.0-beta.8",
|
85
|
+
"@nx/eslint": "20.0.0-beta.8",
|
86
|
+
"@nx/webpack": "20.0.0-beta.8",
|
87
|
+
"@nx/web": "20.0.0-beta.8",
|
88
|
+
"@nx/workspace": "20.0.0-beta.8",
|
89
89
|
"piscina": "^4.4.0"
|
90
90
|
},
|
91
91
|
"peerDependencies": {
|
@@ -16,15 +16,19 @@ const patch_builder_context_1 = require("../../executors/utilities/patch-builder
|
|
16
16
|
const buildable_libs_1 = require("../utilities/buildable-libs");
|
17
17
|
const webpack_1 = require("../utilities/webpack");
|
18
18
|
const lib_1 = require("./lib");
|
19
|
+
const configuration_1 = require("nx/src/config/configuration");
|
19
20
|
function executeDevServerBuilder(rawOptions, context) {
|
20
21
|
(0, lib_1.validateOptions)(rawOptions);
|
21
22
|
process.env.NX_TSCONFIG_PATH = (0, js_1.getRootTsConfigPath)();
|
22
23
|
const options = (0, lib_1.normalizeOptions)(rawOptions);
|
24
|
+
const projectGraph = (0, devkit_1.readCachedProjectGraph)();
|
23
25
|
const parsedBuildTarget = (0, devkit_1.parseTargetString)(options.buildTarget, {
|
24
26
|
cwd: context.currentDirectory,
|
25
|
-
projectGraph
|
27
|
+
projectGraph,
|
26
28
|
projectName: context.target.project,
|
29
|
+
projectsConfigurations: (0, devkit_1.readProjectsConfigurationFromProjectGraph)(projectGraph),
|
27
30
|
root: context.workspaceRoot,
|
31
|
+
nxJsonConfiguration: (0, configuration_1.readNxJson)(devkit_1.workspaceRoot),
|
28
32
|
isVerbose: false,
|
29
33
|
});
|
30
34
|
const browserTargetProjectConfiguration = (0, project_graph_1.readCachedProjectConfiguration)(parsedBuildTarget.project);
|
@@ -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;
|