@nx/angular 17.3.0-beta.4 → 17.3.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "17.3.0-beta.4",
3
+ "version": "17.3.0-beta.6",
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, 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- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -73,20 +73,20 @@
73
73
  "find-cache-dir": "^3.3.2",
74
74
  "ignore": "^5.0.4",
75
75
  "magic-string": "~0.30.2",
76
- "minimatch": "3.0.5",
76
+ "minimatch": "9.0.3",
77
77
  "semver": "7.5.3",
78
78
  "tslib": "^2.3.0",
79
79
  "webpack": "^5.80.0",
80
80
  "webpack-merge": "^5.8.0",
81
- "@nx/devkit": "17.3.0-beta.4",
82
- "@nx/cypress": "17.3.0-beta.4",
83
- "@nx/jest": "17.3.0-beta.4",
84
- "@nx/js": "17.3.0-beta.4",
85
- "@nx/eslint": "17.3.0-beta.4",
86
- "@nx/webpack": "17.3.0-beta.4",
87
- "@nx/web": "17.3.0-beta.4",
88
- "@nx/workspace": "17.3.0-beta.4",
89
- "@nrwl/angular": "17.3.0-beta.4"
81
+ "@nx/devkit": "17.3.0-beta.6",
82
+ "@nx/cypress": "17.3.0-beta.6",
83
+ "@nx/jest": "17.3.0-beta.6",
84
+ "@nx/js": "17.3.0-beta.6",
85
+ "@nx/eslint": "17.3.0-beta.6",
86
+ "@nx/webpack": "17.3.0-beta.6",
87
+ "@nx/web": "17.3.0-beta.6",
88
+ "@nx/workspace": "17.3.0-beta.6",
89
+ "@nrwl/angular": "17.3.0-beta.6"
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@angular-devkit/build-angular": ">= 15.0.0 < 18.0.0",
@@ -1,3 +1,3 @@
1
- import type { Tree } from '@nx/devkit';
1
+ import { Tree } from '@nx/devkit';
2
2
  import type { NormalizedSchema } from './normalized-schema';
3
3
  export declare function createProject(tree: Tree, options: NormalizedSchema): void;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createProject = void 0;
4
4
  const devkit_1 = require("@nx/devkit");
5
5
  const version_utils_1 = require("../../utils/version-utils");
6
+ const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
6
7
  function createProject(tree, options) {
7
8
  const { major: angularMajorVersion } = (0, version_utils_1.getInstalledAngularVersionInfo)(tree);
8
9
  const buildExecutor = options.bundler === 'webpack'
@@ -14,6 +15,7 @@ function createProject(tree, options) {
14
15
  const buildMainOptionName = angularMajorVersion >= 17 && options.bundler === 'esbuild'
15
16
  ? 'browser'
16
17
  : 'main';
18
+ (0, add_build_target_defaults_1.addBuildTargetDefaults)(tree, buildExecutor);
17
19
  let budgets = undefined;
18
20
  if (options.bundler === 'webpack' || angularMajorVersion >= 17) {
19
21
  if (options.strict) {
@@ -25,7 +25,7 @@ function installAngularDevkitCoreIfMissing(tree, options) {
25
25
  // @schematics/angular cannot be required so this fails but this will still allow wrapping the schematic later on
26
26
  }
27
27
  if (!options.skipPackageJson) {
28
- return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { ['@angular-devkit/core']: devkitVersion });
28
+ return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, { ['@angular-devkit/core']: devkitVersion }, undefined, options.keepExistingVersions);
29
29
  }
30
30
  }
31
31
  return () => { };
@@ -2,4 +2,5 @@ export interface Schema {
2
2
  skipFormat?: boolean;
3
3
  skipInstall?: boolean;
4
4
  skipPackageJson?: boolean;
5
+ keepExistingVersions?: boolean;
5
6
  }
@@ -23,6 +23,12 @@
23
23
  "default": false,
24
24
  "description": "Do not add dependencies to `package.json`.",
25
25
  "x-priority": "internal"
26
+ },
27
+ "keepExistingVersions": {
28
+ "type": "boolean",
29
+ "x-priority": "internal",
30
+ "description": "Keep existing dependencies versions",
31
+ "default": false
26
32
  }
27
33
  },
28
34
  "additionalProperties": false
@@ -8,7 +8,7 @@ const component_info_1 = require("../utils/storybook-ast/component-info");
8
8
  const entry_point_1 = require("../utils/storybook-ast/entry-point");
9
9
  const get_e2e_project_1 = require("./lib/get-e2e-project");
10
10
  const module_info_1 = require("../utils/storybook-ast/module-info");
11
- const minimatch = require("minimatch");
11
+ const minimatch_1 = require("minimatch");
12
12
  const versions_1 = require("../../utils/versions");
13
13
  async function angularStoriesGenerator(tree, options) {
14
14
  const e2eProjectName = options.cypressProject ?? `${options.name}-e2e`;
@@ -23,7 +23,7 @@ async function angularStoriesGenerator(tree, options) {
23
23
  devkit_1.logger.info(`There was no e2e project "${e2eProjectName}" found, so cypress specs will not be generated. Pass "--cypressProject" to specify a different e2e project name.`);
24
24
  }
25
25
  const componentInfos = componentsInfo.filter((f) => !options.ignorePaths?.some((pattern) => {
26
- const shouldIgnorePath = minimatch((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`), pattern);
26
+ const shouldIgnorePath = (0, minimatch_1.minimatch)((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`), pattern);
27
27
  return shouldIgnorePath;
28
28
  }));
29
29
  for (const info of componentInfos) {