@nx/angular 20.0.0-canary.20241003-84a5c7a → 20.0.0-rc.0

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": "20.0.0-canary.20241003-84a5c7a",
3
+ "version": "20.0.0-rc.0",
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-canary.20241003-84a5c7a",
84
- "@nx/js": "20.0.0-canary.20241003-84a5c7a",
85
- "@nx/eslint": "20.0.0-canary.20241003-84a5c7a",
86
- "@nx/webpack": "20.0.0-canary.20241003-84a5c7a",
87
- "@nx/web": "20.0.0-canary.20241003-84a5c7a",
88
- "@nx/workspace": "20.0.0-canary.20241003-84a5c7a",
83
+ "@nx/devkit": "20.0.0-rc.0",
84
+ "@nx/js": "20.0.0-rc.0",
85
+ "@nx/eslint": "20.0.0-rc.0",
86
+ "@nx/webpack": "20.0.0-rc.0",
87
+ "@nx/web": "20.0.0-rc.0",
88
+ "@nx/workspace": "20.0.0-rc.0",
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: (0, devkit_1.readCachedProjectGraph)(),
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 devDependencies = (0, flat_config_1.useFlatConfig)(tree)
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
- compatVersions.typescriptEslintVersion;
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;