@angular/build 19.2.5 → 19.2.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": "@angular/build",
3
- "version": "19.2.5",
3
+ "version": "19.2.6",
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.1902.5",
26
+ "@angular-devkit/architect": "0.1902.6",
27
27
  "@babel/core": "7.26.10",
28
28
  "@babel/helper-annotate-as-pure": "7.25.9",
29
29
  "@babel/helper-split-export-declaration": "7.24.7",
@@ -46,7 +46,7 @@
46
46
  "sass": "1.85.0",
47
47
  "semver": "7.7.1",
48
48
  "source-map-support": "0.5.21",
49
- "vite": "6.2.3",
49
+ "vite": "6.2.4",
50
50
  "watchpack": "2.4.2"
51
51
  },
52
52
  "optionalDependencies": {
@@ -58,7 +58,7 @@
58
58
  "@angular/localize": "^19.0.0 || ^19.2.0-next.0",
59
59
  "@angular/platform-server": "^19.0.0 || ^19.2.0-next.0",
60
60
  "@angular/service-worker": "^19.0.0 || ^19.2.0-next.0",
61
- "@angular/ssr": "^19.2.5",
61
+ "@angular/ssr": "^19.2.6",
62
62
  "karma": "^6.4.0",
63
63
  "less": "^4.2.0",
64
64
  "ng-packagr": "^19.0.0 || ^19.2.0-next.0",
@@ -132,12 +132,12 @@ async function normalizeOptions(context, projectName, options, extensions) {
132
132
  ? undefined
133
133
  : await getTailwindConfig(searchDirectories, workspaceRoot, context);
134
134
  let serverEntryPoint;
135
- if (options.server) {
135
+ if (typeof options.server === 'string') {
136
+ if (options.server === '') {
137
+ throw new Error('The "server" option cannot be an empty string.');
138
+ }
136
139
  serverEntryPoint = node_path_1.default.join(workspaceRoot, options.server);
137
140
  }
138
- else if (options.server === '') {
139
- throw new Error('The "server" option cannot be an empty string.');
140
- }
141
141
  let prerenderOptions;
142
142
  if (options.prerender) {
143
143
  const { discoverRoutes = true, routesFile = undefined } = options.prerender === true ? {} : options.prerender;
@@ -163,11 +163,11 @@ export type Schema = {
163
163
  * The full path for the server entry point to the application, relative to the current
164
164
  * workspace.
165
165
  */
166
- server?: string;
166
+ server?: Serv;
167
167
  /**
168
168
  * Generates a service worker configuration.
169
169
  */
170
- serviceWorker?: ServiceWorker;
170
+ serviceWorker?: Serv;
171
171
  /**
172
172
  * Output source maps for scripts and styles. For more information, see
173
173
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
@@ -496,9 +496,12 @@ export type AutoCspClass = {
496
496
  unsafeEval?: boolean;
497
497
  };
498
498
  /**
499
+ * The full path for the server entry point to the application, relative to the current
500
+ * workspace.
501
+ *
499
502
  * Generates a service worker configuration.
500
503
  */
501
- export type ServiceWorker = boolean | string;
504
+ export type Serv = boolean | string;
502
505
  /**
503
506
  * Output source maps for scripts and styles. For more information, see
504
507
  * https://angular.dev/reference/configs/workspace-config#source-map-configuration.
@@ -17,7 +17,6 @@
17
17
  "description": "The full path for the browser entry point to the application, relative to the current workspace."
18
18
  },
19
19
  "server": {
20
- "type": "string",
21
20
  "description": "The full path for the server entry point to the application, relative to the current workspace.",
22
21
  "oneOf": [
23
22
  {
@@ -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 = '19.2.5';
13
+ const VERSION = '19.2.6';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&