@nx/angular 21.4.0-canary.20250815-18ba315 → 21.4.1

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.
Files changed (22) hide show
  1. package/migrations.json +5 -0
  2. package/package.json +9 -9
  3. package/spec/src/migrations/update-21-5-0/set-tsconfig-option.spec.d.ts +2 -0
  4. package/spec/src/migrations/update-21-5-0/set-tsconfig-option.spec.d.ts.map +1 -0
  5. package/src/builders/dev-server/dev-server.impl.d.ts.map +1 -1
  6. package/src/builders/dev-server/dev-server.impl.js +2 -1
  7. package/src/builders/webpack-browser/webpack-browser.impl.d.ts.map +1 -1
  8. package/src/builders/webpack-browser/webpack-browser.impl.js +16 -0
  9. package/src/builders/webpack-server/webpack-server.impl.d.ts.map +1 -1
  10. package/src/builders/webpack-server/webpack-server.impl.js +16 -0
  11. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.d.ts.map +1 -1
  12. package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +16 -0
  13. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.d.ts.map +1 -1
  14. package/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.js +17 -1
  15. package/src/generators/library/lib/add-project.d.ts.map +1 -1
  16. package/src/generators/library/lib/add-project.js +2 -3
  17. package/src/migrations/update-21-5-0/set-tsconfig-option.d.ts +3 -0
  18. package/src/migrations/update-21-5-0/set-tsconfig-option.d.ts.map +1 -0
  19. package/src/migrations/update-21-5-0/set-tsconfig-option.js +67 -0
  20. package/src/utils/backward-compatible-versions.js +2 -2
  21. package/src/utils/versions.d.ts +1 -1
  22. package/src/utils/versions.js +1 -1
package/migrations.json CHANGED
@@ -352,6 +352,11 @@
352
352
  },
353
353
  "description": "Update the @angular/cli package version to ~20.1.0.",
354
354
  "factory": "./src/migrations/update-21-3-0/update-angular-cli"
355
+ },
356
+ "set-tsconfig-option": {
357
+ "version": "21.5.0-beta.0",
358
+ "description": "Set the 'tsConfig' option to build and test targets to help with Angular migration issues.",
359
+ "factory": "./src/migrations/update-21-5-0/set-tsconfig-option"
355
360
  }
356
361
  },
357
362
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular",
3
- "version": "21.4.0-canary.20250815-18ba315",
3
+ "version": "21.4.1",
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": {
@@ -58,14 +58,14 @@
58
58
  "migrations": "./migrations.json"
59
59
  },
60
60
  "dependencies": {
61
- "@nx/devkit": "21.4.0-canary.20250815-18ba315",
62
- "@nx/eslint": "21.4.0-canary.20250815-18ba315",
63
- "@nx/js": "21.4.0-canary.20250815-18ba315",
64
- "@nx/module-federation": "21.4.0-canary.20250815-18ba315",
65
- "@nx/rspack": "21.4.0-canary.20250815-18ba315",
66
- "@nx/web": "21.4.0-canary.20250815-18ba315",
67
- "@nx/webpack": "21.4.0-canary.20250815-18ba315",
68
- "@nx/workspace": "21.4.0-canary.20250815-18ba315",
61
+ "@nx/devkit": "21.4.1",
62
+ "@nx/eslint": "21.4.1",
63
+ "@nx/js": "21.4.1",
64
+ "@nx/module-federation": "21.4.1",
65
+ "@nx/rspack": "21.4.1",
66
+ "@nx/web": "21.4.1",
67
+ "@nx/webpack": "21.4.1",
68
+ "@nx/workspace": "21.4.1",
69
69
  "@phenomnomnominal/tsquery": "~5.0.1",
70
70
  "@typescript-eslint/type-utils": "^8.0.0",
71
71
  "enquirer": "~2.3.6",
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=set-tsconfig-option.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tsconfig-option.spec.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/migrations/update-21-5-0/set-tsconfig-option.spec.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/dev-server/dev-server.impl.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAWzD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,6FAsM5D;wBAII,GAAG;AAFR,wBAES"}
1
+ {"version":3,"file":"dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/dev-server/dev-server.impl.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,UAAU,CAAC;AAYzD,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,6FAsM5D;wBAII,GAAG;AAFR,wBAES"}
@@ -153,7 +153,8 @@ function executeDevServerBuilder(rawOptions, context) {
153
153
  // run the target for all projects.
154
154
  // This will occur when workspaceDependencies = []
155
155
  if (workspaceDependencies.length > 0) {
156
- baseWebpackConfig.plugins.push(new webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin(`nx run-many --target=${parsedBuildTarget.target} --projects=${workspaceDependencies.join(',')}`, { skipWatchingDeps: !options.watchDependencies }));
156
+ baseWebpackConfig.plugins.push(new webpack_nx_build_coordination_plugin_1.WebpackNxBuildCoordinationPlugin(`nx run-many --target=${parsedBuildTarget.target} --projects=${workspaceDependencies.join(',')}`, { skipWatchingDeps: !options.watchDependencies }) // TODO(Colum): this can be removed when angular 20.2 is merged
157
+ );
157
158
  }
158
159
  }
159
160
  if (!pathToWebpackConfig) {
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-browser.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/webpack-browser/webpack-browser.impl.ts"],"names":[],"mappings":"AAaA,OAAO,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AAQxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA4BrD,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,GAC1D,UAAU,CAAC,OAAO,2BAA2B,EAAE,aAAa,CAAC,CAwG/D;wBAII,GAAG;AAFR,wBAES"}
1
+ {"version":3,"file":"webpack-browser.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/webpack-browser/webpack-browser.impl.ts"],"names":[],"mappings":"AAaA,OAAO,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAC;AAQxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA+CrD,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,2BAA2B,EAAE,cAAc,GAC1D,UAAU,CAAC,OAAO,2BAA2B,EAAE,aAAa,CAAC,CAwG/D;wBAII,GAAG;AAFR,wBAES"}
@@ -45,6 +45,22 @@ const operators_2 = require("rxjs/operators");
45
45
  const builder_package_1 = require("../../executors/utilities/builder-package");
46
46
  const buildable_libs_1 = require("../utilities/buildable-libs");
47
47
  const webpack_1 = require("../utilities/webpack");
48
+ // This is required to ensure that the webpack version used by the Module Federation is the same as the one used by the builders.
49
+ const Module = require('module');
50
+ const originalResolveFilename = Module._resolveFilename;
51
+ const patchedWebpackPath = require.resolve('webpack', {
52
+ paths: [require.resolve('@angular-devkit/build-angular')],
53
+ });
54
+ // Override the resolve function
55
+ Module._resolveFilename = function (request, parent, isMain, options) {
56
+ // Intercept webpack specifically
57
+ if (request === 'webpack') {
58
+ // Force webpack to resolve from your specific path
59
+ return patchedWebpackPath;
60
+ }
61
+ // For all other modules, use the original resolver
62
+ return originalResolveFilename.call(this, request, parent, isMain, options);
63
+ };
48
64
  function shouldSkipInitialTargetRun(projectGraph, project, target) {
49
65
  const allTargetNames = new Set();
50
66
  for (const projectName in projectGraph.nodes) {
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/webpack-server/webpack-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAQzE,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAKxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAgFlC,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GACtB,UAAU,CAAC,mBAAmB,CAAC,CAiBjC;wBAII,GAAG;AAFR,wBAES"}
1
+ {"version":3,"file":"webpack-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/builders/webpack-server/webpack-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAQzE,OAAO,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AAKxC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAmGlC,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GACtB,UAAU,CAAC,mBAAmB,CAAC,CAiBjC;wBAII,GAAG;AAFR,wBAES"}
@@ -42,6 +42,22 @@ const operators_1 = require("rxjs/operators");
42
42
  const builder_package_1 = require("../../executors/utilities/builder-package");
43
43
  const buildable_libs_1 = require("../utilities/buildable-libs");
44
44
  const webpack_1 = require("../utilities/webpack");
45
+ // This is required to ensure that the webpack version used by the Module Federation is the same as the one used by the builders.
46
+ const Module = require('module');
47
+ const originalResolveFilename = Module._resolveFilename;
48
+ const patchedWebpackPath = require.resolve('webpack', {
49
+ paths: [require.resolve('@angular-devkit/build-angular')],
50
+ });
51
+ // Override the resolve function
52
+ Module._resolveFilename = function (request, parent, isMain, options) {
53
+ // Intercept webpack specifically
54
+ if (request === 'webpack') {
55
+ // Force webpack to resolve from your specific path
56
+ return patchedWebpackPath;
57
+ }
58
+ // For all other modules, use the original resolver
59
+ return originalResolveFilename.call(this, request, parent, isMain, options);
60
+ };
45
61
  function buildServerApp(options, context) {
46
62
  (0, builder_package_1.assertBuilderPackageIsInstalled)('@angular-devkit/build-angular');
47
63
  const { buildLibsFromSource, customWebpackConfig, ...delegateOptions } = options;
@@ -1 +1 @@
1
- {"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAoBvC,wBAAuB,iCAAiC,CACtD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,iCAgIzB;AAED,eAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"module-federation-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-dev-server/module-federation-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAwCvC,wBAAuB,iCAAiC,CACtD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,iCAgIzB;AAED,eAAe,iCAAiC,CAAC"}
@@ -14,6 +14,22 @@ const dev_server_impl_1 = require("../../builders/dev-server/dev-server.impl");
14
14
  const module_federation_1 = require("../../builders/utilities/module-federation");
15
15
  const path_1 = require("path");
16
16
  const fs_1 = require("fs");
17
+ // This is required to ensure that the webpack version used by the Module Federation is the same as the one used by the builders.
18
+ const Module = require('module');
19
+ const originalResolveFilename = Module._resolveFilename;
20
+ const patchedWebpackPath = require.resolve('webpack', {
21
+ paths: [require.resolve('@angular-devkit/build-angular')],
22
+ });
23
+ // Override the resolve function
24
+ Module._resolveFilename = function (request, parent, isMain, options) {
25
+ // Intercept webpack specifically
26
+ if (request === 'webpack') {
27
+ // Force webpack to resolve from your specific path
28
+ return patchedWebpackPath;
29
+ }
30
+ // For all other modules, use the original resolver
31
+ return originalResolveFilename.call(this, request, parent, isMain, options);
32
+ };
17
33
  async function* moduleFederationDevServerExecutor(schema, context) {
18
34
  const options = (0, lib_1.normalizeOptions)(schema);
19
35
  const { projects: workspaceProjects } = (0, devkit_1.readProjectsConfigurationFromProjectGraph)(context.projectGraph);
@@ -1 +1 @@
1
- {"version":3,"file":"module-federation-ssr-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAoB1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAuB,oCAAoC,CACzD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,+FA2HzB;AAED,eAAe,oCAAoC,CAAC"}
1
+ {"version":3,"file":"module-federation-ssr-dev-server.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/executors/module-federation-ssr-dev-server/module-federation-ssr-dev-server.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,YAAY,CAAC;AAoB1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAsBvC,wBAAuB,oCAAoC,CACzD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,eAAe,+FA4HzB;AAED,eAAe,oCAAoC,CAAC"}
@@ -47,6 +47,22 @@ const module_federation_1 = require("../../builders/utilities/module-federation"
47
47
  const builder_package_1 = require("../utilities/builder-package");
48
48
  const normalize_options_1 = require("./lib/normalize-options");
49
49
  const start_dev_remotes_1 = require("./lib/start-dev-remotes");
50
+ // This is required to ensure that the webpack version used by the Module Federation is the same as the one used by the builders.
51
+ const Module = require('module');
52
+ const originalResolveFilename = Module._resolveFilename;
53
+ const patchedWebpackPath = require.resolve('webpack', {
54
+ paths: [require.resolve('@angular-devkit/build-angular')],
55
+ });
56
+ // Override the resolve function
57
+ Module._resolveFilename = function (request, parent, isMain, options) {
58
+ // Intercept webpack specifically
59
+ if (request === 'webpack') {
60
+ // Force webpack to resolve from your specific path
61
+ return patchedWebpackPath;
62
+ }
63
+ // For all other modules, use the original resolver
64
+ return originalResolveFilename.call(this, request, parent, isMain, options);
65
+ };
50
66
  async function* moduleFederationSsrDevServerExecutor(schema, context) {
51
67
  const options = (0, normalize_options_1.normalizeOptions)(schema);
52
68
  (0, builder_package_1.assertBuilderPackageIsInstalled)('@angular-devkit/build-angular');
@@ -93,7 +109,7 @@ async function* moduleFederationSsrDevServerExecutor(schema, context) {
93
109
  return;
94
110
  }
95
111
  try {
96
- const portsToWaitFor = staticRemotesIter
112
+ const portsToWaitFor = staticRemotesIter && options.staticRemotesPort
97
113
  ? [options.staticRemotesPort, ...remotes.remotePorts]
98
114
  : [...remotes.remotePorts];
99
115
  await Promise.all(portsToWaitFor.map((port) => (0, wait_for_port_open_1.waitForPortOpen)(port, {
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/library/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AASvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAsB,UAAU,CAC9B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,wCAiDnD"}
1
+ {"version":3,"file":"add-project.d.ts","sourceRoot":"","sources":["../../../../../../../packages/angular/src/generators/library/lib/add-project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AASvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAsB,UAAU,CAC9B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,wCAgDnD"}
@@ -25,14 +25,13 @@ async function addProject(tree, libraryOptions) {
25
25
  outputs: ['{workspaceRoot}/dist/{projectRoot}'],
26
26
  options: {
27
27
  project: `${libraryOptions.projectRoot}/ng-package.json`,
28
+ tsConfig: `${libraryOptions.projectRoot}/tsconfig.lib.json`,
28
29
  },
29
30
  configurations: {
30
31
  production: {
31
32
  tsConfig: `${libraryOptions.projectRoot}/tsconfig.lib.prod.json`,
32
33
  },
33
- development: {
34
- tsConfig: `${libraryOptions.projectRoot}/tsconfig.lib.json`,
35
- },
34
+ development: {},
36
35
  },
37
36
  defaultConfiguration: 'production',
38
37
  };
@@ -0,0 +1,3 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ export default function (tree: Tree): Promise<void>;
3
+ //# sourceMappingURL=set-tsconfig-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-tsconfig-option.d.ts","sourceRoot":"","sources":["../../../../../../packages/angular/src/migrations/update-21-5-0/set-tsconfig-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAUpB,yBAA+B,IAAI,EAAE,IAAI,iBAwBxC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = default_1;
4
+ const devkit_1 = require("@nx/devkit");
5
+ const targets_1 = require("../../utils/targets");
6
+ const projects_1 = require("../utils/projects");
7
+ const buildExecutors = new Set([
8
+ '@nx/angular:ng-packagr-lite',
9
+ '@nx/angular:package',
10
+ ]);
11
+ const testExecutors = new Set(['@nx/jest:jest']);
12
+ async function default_1(tree) {
13
+ const projects = await (0, projects_1.getProjectsFilteredByDependencies)([
14
+ 'npm:@angular/core',
15
+ ]);
16
+ for (const project of projects) {
17
+ try {
18
+ // we're only updating static project configurations, not inferred ones
19
+ const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, project.name);
20
+ let wasUpdated = false;
21
+ for (const target of relevantTargets(projectConfig)) {
22
+ updateTarget(tree, projectConfig, target);
23
+ wasUpdated = true;
24
+ }
25
+ if (wasUpdated) {
26
+ (0, devkit_1.updateProjectConfiguration)(tree, project.name, projectConfig);
27
+ }
28
+ }
29
+ catch {
30
+ // ignore, it can happen if the project is fully inferred and there's no
31
+ // `project.json` file or `nx` entry in `package.json`
32
+ }
33
+ }
34
+ await (0, devkit_1.formatFiles)(tree);
35
+ }
36
+ function updateTarget(tree, projectConfig, target) {
37
+ if (buildExecutors.has(target.executor)) {
38
+ if (target.configurations?.['development']?.tsConfig) {
39
+ // only set the option if the target has the expected tsConfig option in
40
+ // the development configuration
41
+ target.options ??= {};
42
+ target.options.tsConfig = target.configurations['development'].tsConfig;
43
+ // remove tsConfig from development configuration after moving it to options
44
+ delete target.configurations['development'].tsConfig;
45
+ }
46
+ }
47
+ else if (testExecutors.has(target.executor)) {
48
+ const expectedTsconfigPath = (0, devkit_1.joinPathFragments)(projectConfig.root, 'tsconfig.spec.json');
49
+ if (tree.exists(expectedTsconfigPath)) {
50
+ // we keep it simple and only set the option if the expected tsconfig
51
+ // file exists
52
+ target.options ??= {};
53
+ target.options.tsConfig = expectedTsconfigPath;
54
+ }
55
+ }
56
+ }
57
+ function* relevantTargets(project) {
58
+ for (const [, target] of (0, targets_1.allProjectTargets)(project)) {
59
+ if (!buildExecutors.has(target.executor) &&
60
+ !testExecutors.has(target.executor)) {
61
+ continue;
62
+ }
63
+ if (!target.options?.['tsConfig']) {
64
+ yield target;
65
+ }
66
+ }
67
+ }
@@ -28,7 +28,7 @@ exports.backwardCompatibleVersions = {
28
28
  tsNodeVersion: '10.9.1',
29
29
  lessVersion: '^4.3.0',
30
30
  jestPresetAngularVersion: '~14.1.0',
31
- typesNodeVersion: '18.16.9',
31
+ typesNodeVersion: '20.19.9',
32
32
  jasmineMarblesVersion: '^0.9.2',
33
33
  jsoncEslintParserVersion: '^2.1.0',
34
34
  webpackMergeVersion: '^5.8.0',
@@ -59,7 +59,7 @@ exports.backwardCompatibleVersions = {
59
59
  tsNodeVersion: '10.9.1',
60
60
  lessVersion: '^4.3.0',
61
61
  jestPresetAngularVersion: '~14.4.0',
62
- typesNodeVersion: '18.16.9',
62
+ typesNodeVersion: '20.19.9',
63
63
  jasmineMarblesVersion: '^0.9.2',
64
64
  jsoncEslintParserVersion: '^2.1.0',
65
65
  webpackMergeVersion: '^5.8.0',
@@ -25,7 +25,7 @@ export declare const autoprefixerVersion = "^10.4.0";
25
25
  export declare const tsNodeVersion = "10.9.1";
26
26
  export declare const lessVersion = "^4.3.0";
27
27
  export declare const jestPresetAngularVersion = "~15.0.0";
28
- export declare const typesNodeVersion = "18.16.9";
28
+ export declare const typesNodeVersion = "20.19.9";
29
29
  export declare const jasmineMarblesVersion = "^0.9.2";
30
30
  export declare const jsoncEslintParserVersion = "^2.1.0";
31
31
  //# sourceMappingURL=versions.d.ts.map
@@ -28,6 +28,6 @@ exports.autoprefixerVersion = '^10.4.0';
28
28
  exports.tsNodeVersion = '10.9.1';
29
29
  exports.lessVersion = '^4.3.0';
30
30
  exports.jestPresetAngularVersion = '~15.0.0';
31
- exports.typesNodeVersion = '18.16.9';
31
+ exports.typesNodeVersion = '20.19.9';
32
32
  exports.jasmineMarblesVersion = '^0.9.2';
33
33
  exports.jsoncEslintParserVersion = '^2.1.0';