@angular/build 20.0.0-rc.4 → 20.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/build",
3
- "version": "20.0.0-rc.4",
3
+ "version": "20.0.1",
4
4
  "description": "Official build system for Angular",
5
5
  "keywords": [
6
6
  "Angular CLI",
@@ -23,7 +23,7 @@
23
23
  "builders": "builders.json",
24
24
  "dependencies": {
25
25
  "@ampproject/remapping": "2.3.0",
26
- "@angular-devkit/architect": "0.2000.0-rc.4",
26
+ "@angular-devkit/architect": "0.2000.1",
27
27
  "@babel/core": "7.27.1",
28
28
  "@babel/helper-annotate-as-pure": "7.27.1",
29
29
  "@babel/helper-split-export-declaration": "7.24.7",
@@ -53,17 +53,17 @@
53
53
  "lmdb": "3.3.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/core": "^20.0.0 || ^20.0.0-next.0",
57
- "@angular/compiler": "^20.0.0 || ^20.0.0-next.0",
58
- "@angular/compiler-cli": "^20.0.0 || ^20.0.0-next.0",
59
- "@angular/localize": "^20.0.0 || ^20.0.0-next.0",
60
- "@angular/platform-browser": "^20.0.0 || ^20.0.0-next.0",
61
- "@angular/platform-server": "^20.0.0 || ^20.0.0-next.0",
62
- "@angular/service-worker": "^20.0.0 || ^20.0.0-next.0",
63
- "@angular/ssr": "^20.0.0-rc.4",
56
+ "@angular/core": "^20.0.0",
57
+ "@angular/compiler": "^20.0.0",
58
+ "@angular/compiler-cli": "^20.0.0",
59
+ "@angular/localize": "^20.0.0",
60
+ "@angular/platform-browser": "^20.0.0",
61
+ "@angular/platform-server": "^20.0.0",
62
+ "@angular/service-worker": "^20.0.0",
63
+ "@angular/ssr": "^20.0.1",
64
64
  "karma": "^6.4.0",
65
65
  "less": "^4.2.0",
66
- "ng-packagr": "^20.0.0 || ^20.0.0-next.0",
66
+ "ng-packagr": "^20.0.0",
67
67
  "postcss": "^8.4.0",
68
68
  "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
69
69
  "tslib": "^2.3.0",
@@ -457,6 +457,29 @@ async function initializeApplication(options, context, karmaOptions, transforms
457
457
  parsedKarmaConfig.plugins.push(AngularPolyfillsPlugin.createPlugin(polyfillsFile, jasmineCleanupFiles));
458
458
  parsedKarmaConfig.reporters ??= [];
459
459
  parsedKarmaConfig.reporters.push(AngularPolyfillsPlugin.NAME);
460
+ // Adjust karma junit reporter outDir location to maintain previous (devkit) behavior
461
+ // The base path for the reporter was previously the workspace root.
462
+ // To keep the files in the same location, the reporter's output directory is adjusted
463
+ // to be relative to the workspace root when using junit.
464
+ if (parsedKarmaConfig.reporters?.some((reporter) => reporter === 'junit')) {
465
+ if ('junitReporter' in parsedKarmaConfig) {
466
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
467
+ const junitReporterOptions = parsedKarmaConfig['junitReporter'];
468
+ if (junitReporterOptions.outputDir == undefined) {
469
+ junitReporterOptions.outputDir = context.workspaceRoot;
470
+ }
471
+ else if (typeof junitReporterOptions.outputDir === 'string' &&
472
+ !path.isAbsolute(junitReporterOptions.outputDir)) {
473
+ junitReporterOptions.outputDir = path.join(context.workspaceRoot, junitReporterOptions.outputDir);
474
+ }
475
+ }
476
+ else {
477
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
478
+ parsedKarmaConfig['junitReporter'] = {
479
+ outputDir: context.workspaceRoot,
480
+ };
481
+ }
482
+ }
460
483
  // When using code-coverage, auto-add karma-coverage.
461
484
  // This was done as part of the karma plugin for webpack.
462
485
  if (options.codeCoverage &&
@@ -84,6 +84,7 @@ async function* execute(options, context, extensions = {}) {
84
84
  index: false,
85
85
  browser: undefined,
86
86
  server: undefined,
87
+ outputMode: undefined,
87
88
  localize: false,
88
89
  budgets: [],
89
90
  serviceWorker: false,
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.normalizeCacheOptions = normalizeCacheOptions;
11
11
  const node_path_1 = require("node:path");
12
12
  /** Version placeholder is replaced during the build process with actual package version */
13
- const VERSION = '20.0.0-rc.4';
13
+ const VERSION = '20.0.1';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&
@@ -28,7 +28,7 @@ function assertCompatibleAngularVersion(projectRoot) {
28
28
  'This likely indicates a corrupted local installation. Please try reinstalling your packages.');
29
29
  process.exit(2);
30
30
  }
31
- const supportedAngularSemver = '^20.0.0 || ^20.0.0-next.0';
31
+ const supportedAngularSemver = '^20.0.0';
32
32
  if (angularPkgJson['version'] === '0.0.0' || supportedAngularSemver.startsWith('0.0.0')) {
33
33
  // Internal CLI and FW testing version.
34
34
  return;