@nx/angular 0.0.0-pr-30457-5f1b92b → 0.0.0-pr-30565-ba2942e

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,10 +1341,6 @@
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
- },
1348
1344
  "ng-packagr": {
1349
1345
  "version": "~19.0.0",
1350
1346
  "alwaysAddToPackageJson": false
@@ -1541,10 +1537,6 @@
1541
1537
  "version": "~19.1.0",
1542
1538
  "alwaysAddToPackageJson": false
1543
1539
  },
1544
- "@angular/google-maps": {
1545
- "version": "~19.1.0",
1546
- "alwaysAddToPackageJson": false
1547
- },
1548
1540
  "ng-packagr": {
1549
1541
  "version": "~19.1.0",
1550
1542
  "alwaysAddToPackageJson": false
@@ -1606,10 +1598,6 @@
1606
1598
  "version": "~19.2.1",
1607
1599
  "alwaysAddToPackageJson": false
1608
1600
  },
1609
- "@angular/google-maps": {
1610
- "version": "~19.2.1",
1611
- "alwaysAddToPackageJson": false
1612
- },
1613
1601
  "ng-packagr": {
1614
1602
  "version": "~19.2.0",
1615
1603
  "alwaysAddToPackageJson": false
package/ng-package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "@typescript-eslint/",
16
16
  "picocolors",
17
17
  "ignore",
18
- "picomatch",
18
+ "minimatch",
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-30457-5f1b92b",
3
+ "version": "0.0.0-pr-30565-ba2942e",
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",
71
70
  "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-30457-5f1b92b",
76
- "@nx/js": "0.0.0-pr-30457-5f1b92b",
77
- "@nx/eslint": "0.0.0-pr-30457-5f1b92b",
78
- "@nx/webpack": "0.0.0-pr-30457-5f1b92b",
79
- "@nx/rspack": "0.0.0-pr-30457-5f1b92b",
80
- "@nx/module-federation": "0.0.0-pr-30457-5f1b92b",
81
- "@nx/web": "0.0.0-pr-30457-5f1b92b",
82
- "@nx/workspace": "0.0.0-pr-30457-5f1b92b",
75
+ "@nx/devkit": "0.0.0-pr-30565-ba2942e",
76
+ "@nx/js": "0.0.0-pr-30565-ba2942e",
77
+ "@nx/eslint": "0.0.0-pr-30565-ba2942e",
78
+ "@nx/webpack": "0.0.0-pr-30565-ba2942e",
79
+ "@nx/rspack": "0.0.0-pr-30565-ba2942e",
80
+ "@nx/module-federation": "0.0.0-pr-30565-ba2942e",
81
+ "@nx/web": "0.0.0-pr-30565-ba2942e",
82
+ "@nx/workspace": "0.0.0-pr-30565-ba2942e",
83
83
  "piscina": "^4.4.0"
84
84
  },
85
85
  "peerDependencies": {
@@ -2,5 +2,7 @@ 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
- }, void, any>;
5
+ }, {
6
+ success: boolean;
7
+ }, any>;
6
8
  export default delegateBuildExecutor;
@@ -6,6 +6,9 @@ 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
+ }
9
12
  const { buildTarget, ...targetOptions } = options;
10
13
  const delegateTarget = (0, devkit_1.parseTargetString)(buildTarget, context);
11
14
  yield* await (0, devkit_1.runExecutor)(delegateTarget, targetOptions, context);
@@ -31,7 +31,10 @@ 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 { dependencies } = (0, buildable_libs_utils_1.calculateProjectBuildableDependencies)(context.taskGraph, context.projectGraph, context.root, context.projectName, context.targetName, context.configurationName);
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
+ }
35
38
  if (options.watch) {
36
39
  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 })));
37
40
  }
@@ -2,25 +2,13 @@
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");
6
5
  function updateTsconfig(tree, projectRoot) {
7
6
  const tsconfigPath = (0, devkit_1.joinPathFragments)(projectRoot, 'tsconfig.json');
8
7
  const tsconfig = (0, devkit_1.readJson)(tree, tsconfigPath);
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
- }
8
+ tsconfig['ts-node'] = {
9
+ compilerOptions: {
10
+ module: 'CommonJS',
11
+ },
12
+ };
25
13
  (0, devkit_1.writeJson)(tree, tsconfigPath, tsconfig);
26
14
  }
@@ -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 picomatch = require("picomatch");
10
+ const minimatch_1 = require("minimatch");
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 = picomatch(pattern)((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`));
20
+ const shouldIgnorePath = (0, minimatch_1.minimatch)((0, devkit_1.joinPathFragments)(f.moduleFolderPath, f.path, `${f.componentFileName}.ts`), pattern);
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 picomatch = require("picomatch");
5
+ const minimatch_1 = require("minimatch");
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 = picomatch(webpackConfigGlob)(path);
10
+ const result = (0, minimatch_1.minimatch)(path, webpackConfigGlob);
11
11
  if (!result) {
12
12
  return;
13
13
  }