@nx/angular 0.0.0-pr-3-4212ebd → 0.0.0-pr-30457-3ca7e98

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/migrations.json CHANGED
@@ -1341,6 +1341,10 @@
1341
1341
  "version": "~19.0.0",
1342
1342
  "alwaysAddToPackageJson": false
1343
1343
  },
1344
+ "@angular/google-maps": {
1345
+ "version": "~19.0.0",
1346
+ "alwaysAddToPackageJson": false
1347
+ },
1344
1348
  "ng-packagr": {
1345
1349
  "version": "~19.0.0",
1346
1350
  "alwaysAddToPackageJson": false
@@ -1537,6 +1541,10 @@
1537
1541
  "version": "~19.1.0",
1538
1542
  "alwaysAddToPackageJson": false
1539
1543
  },
1544
+ "@angular/google-maps": {
1545
+ "version": "~19.1.0",
1546
+ "alwaysAddToPackageJson": false
1547
+ },
1540
1548
  "ng-packagr": {
1541
1549
  "version": "~19.1.0",
1542
1550
  "alwaysAddToPackageJson": false
@@ -1598,6 +1606,10 @@
1598
1606
  "version": "~19.2.1",
1599
1607
  "alwaysAddToPackageJson": false
1600
1608
  },
1609
+ "@angular/google-maps": {
1610
+ "version": "~19.2.1",
1611
+ "alwaysAddToPackageJson": false
1612
+ },
1601
1613
  "ng-packagr": {
1602
1614
  "version": "~19.2.0",
1603
1615
  "alwaysAddToPackageJson": false
package/ng-package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "@typescript-eslint/",
16
16
  "picocolors",
17
17
  "ignore",
18
- "minimatch",
18
+ "picomatch",
19
19
  "rxjs-for-await",
20
20
  "webpack-merge",
21
21
  "ts-node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "0.0.0-pr-3-4212ebd",
3
+ "version": "0.0.0-pr-30457-3ca7e98",
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": {
@@ -67,19 +67,19 @@
67
67
  "@typescript-eslint/type-utils": "^8.0.0",
68
68
  "enquirer": "~2.3.6",
69
69
  "picocolors": "^1.1.0",
70
+ "picomatch": "4.0.2",
70
71
  "magic-string": "~0.30.2",
71
- "minimatch": "9.0.3",
72
72
  "semver": "^7.5.3",
73
73
  "tslib": "^2.3.0",
74
74
  "webpack-merge": "^5.8.0",
75
- "@nx/devkit": "0.0.0-pr-3-4212ebd",
76
- "@nx/js": "0.0.0-pr-3-4212ebd",
77
- "@nx/eslint": "0.0.0-pr-3-4212ebd",
78
- "@nx/webpack": "0.0.0-pr-3-4212ebd",
79
- "@nx/rspack": "0.0.0-pr-3-4212ebd",
80
- "@nx/module-federation": "0.0.0-pr-3-4212ebd",
81
- "@nx/web": "0.0.0-pr-3-4212ebd",
82
- "@nx/workspace": "0.0.0-pr-3-4212ebd",
75
+ "@nx/devkit": "0.0.0-pr-30457-3ca7e98",
76
+ "@nx/js": "0.0.0-pr-30457-3ca7e98",
77
+ "@nx/eslint": "0.0.0-pr-30457-3ca7e98",
78
+ "@nx/webpack": "0.0.0-pr-30457-3ca7e98",
79
+ "@nx/rspack": "0.0.0-pr-30457-3ca7e98",
80
+ "@nx/module-federation": "0.0.0-pr-30457-3ca7e98",
81
+ "@nx/web": "0.0.0-pr-30457-3ca7e98",
82
+ "@nx/workspace": "0.0.0-pr-30457-3ca7e98",
83
83
  "piscina": "^4.4.0"
84
84
  },
85
85
  "peerDependencies": {
@@ -2,7 +2,5 @@ import type { ExecutorContext } from '@nx/devkit';
2
2
  import type { DelegateBuildExecutorSchema } from './schema';
3
3
  export declare function delegateBuildExecutor(options: DelegateBuildExecutorSchema, context: ExecutorContext): AsyncGenerator<{
4
4
  success: boolean;
5
- }, {
6
- success: boolean;
7
- }, any>;
5
+ }, void, any>;
8
6
  export default delegateBuildExecutor;
@@ -6,9 +6,6 @@ const buildable_libs_utils_1 = require("@nx/js/src/utils/buildable-libs-utils");
6
6
  async function* delegateBuildExecutor(options, context) {
7
7
  const { target, dependencies } = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
8
8
  options.tsConfig = (0, buildable_libs_utils_1.createTmpTsConfig)((0, devkit_1.joinPathFragments)(context.root, options.tsConfig), context.root, target.data.root, dependencies);
9
- if (!(0, buildable_libs_utils_1.checkDependentProjectsHaveBeenBuilt)(context.root, context.projectName, context.targetName, dependencies)) {
10
- return { success: false };
11
- }
12
9
  const { buildTarget, ...targetOptions } = options;
13
10
  const delegateTarget = (0, devkit_1.parseTargetString)(buildTarget, context);
14
11
  yield* await (0, devkit_1.runExecutor)(delegateTarget, targetOptions, context);
@@ -31,10 +31,7 @@ function createLibraryExecutor(initializeNgPackagr) {
31
31
  if (angularMajorVersion < 18 && options.poll !== undefined) {
32
32
  throw new Error(`The "poll" option requires Angular version 18.0.0 or greater. You are currently using version ${angularVersion}.`);
33
33
  }
34
- const { target, dependencies, topLevelDependencies } = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
35
- if (!(0, buildable_libs_utils_1.checkDependentProjectsHaveBeenBuilt)(context.root, context.projectName, context.targetName, dependencies)) {
36
- return Promise.resolve({ success: false });
37
- }
34
+ const { dependencies } = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
38
35
  if (options.watch) {
39
36
  return yield* (0, rxjs_for_await_1.eachValueFrom)((0, rxjs_1.from)(initializeNgPackagr(options, context, dependencies)).pipe((0, operators_1.switchMap)((packagr) => packagr.watch()), (0, operators_1.mapTo)({ success: true })));
40
37
  }
@@ -2,13 +2,25 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateTsconfig = updateTsconfig;
4
4
  const devkit_1 = require("@nx/devkit");
5
+ const js_1 = require("@nx/js");
5
6
  function updateTsconfig(tree, projectRoot) {
6
7
  const tsconfigPath = (0, devkit_1.joinPathFragments)(projectRoot, 'tsconfig.json');
7
8
  const tsconfig = (0, devkit_1.readJson)(tree, tsconfigPath);
8
- tsconfig['ts-node'] = {
9
- compilerOptions: {
10
- module: 'CommonJS',
11
- },
12
- };
9
+ tsconfig['ts-node'] ??= {};
10
+ tsconfig['ts-node'].compilerOptions ??= {};
11
+ tsconfig['ts-node'].compilerOptions.module = 'CommonJS';
12
+ tsconfig['ts-node'].compilerOptions.moduleResolution = 'Node10';
13
+ if (tsconfig.compilerOptions?.customConditions) {
14
+ tsconfig['ts-node'].compilerOptions.customConditions = null;
15
+ }
16
+ else {
17
+ const rootTsconfigFile = (0, js_1.getRootTsConfigFileName)(tree);
18
+ if (rootTsconfigFile) {
19
+ const rootTsconfigJson = (0, devkit_1.readJson)(tree, rootTsconfigFile);
20
+ if (rootTsconfigJson.compilerOptions?.customConditions) {
21
+ tsconfig['ts-node'].compilerOptions.customConditions = null;
22
+ }
23
+ }
24
+ }
13
25
  (0, devkit_1.writeJson)(tree, tsconfigPath, tsconfig);
14
26
  }
@@ -7,7 +7,7 @@ const component_story_1 = tslib_1.__importDefault(require("../component-story/co
7
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 module_info_1 = require("../utils/storybook-ast/module-info");
10
- const minimatch_1 = require("minimatch");
10
+ const picomatch = require("picomatch");
11
11
  const versions_1 = require("../../utils/versions");
12
12
  async function angularStoriesGenerator(tree, options) {
13
13
  const entryPoints = (0, entry_point_1.getProjectEntryPoints)(tree, options.name);
@@ -17,7 +17,7 @@ async function angularStoriesGenerator(tree, options) {
17
17
  componentsInfo.push(...(0, component_info_1.getComponentsInfo)(tree, entryPoint, moduleFilePaths, options.name), ...(0, component_info_1.getStandaloneComponentsInfo)(tree, entryPoint));
18
18
  }
19
19
  const componentInfos = componentsInfo.filter((f) => !options.ignorePaths?.some((pattern) => {
20
- const shouldIgnorePath = (0, minimatch_1.minimatch)((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`), pattern);
20
+ const shouldIgnorePath = picomatch(pattern)((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`));
21
21
  return shouldIgnorePath;
22
22
  }));
23
23
  for (const info of componentInfos) {
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = default_1;
4
4
  const devkit_1 = require("@nx/devkit");
5
- const minimatch_1 = require("minimatch");
5
+ const picomatch = require("picomatch");
6
6
  const tsquery_1 = require("@phenomnomnominal/tsquery");
7
7
  async function default_1(tree) {
8
8
  (0, devkit_1.visitNotIgnoredFiles)(tree, '', (path) => {
9
9
  const webpackConfigGlob = '**/webpack*.config*.{js,ts,mjs,cjs}';
10
- const result = (0, minimatch_1.minimatch)(path, webpackConfigGlob);
10
+ const result = picomatch(webpackConfigGlob)(path);
11
11
  if (!result) {
12
12
  return;
13
13
  }