@angular-devkit/build-angular 19.0.0-next.0 → 19.0.0-next.10

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.
@@ -2,7 +2,17 @@
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
3
3
  // CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.InlineStyleLanguage = void 0;
5
+ exports.InlineStyleLanguage = exports.BuilderMode = void 0;
6
+ /**
7
+ * Determines how to build the code under test. If set to 'detect', attempts to follow the
8
+ * development builder.
9
+ */
10
+ var BuilderMode;
11
+ (function (BuilderMode) {
12
+ BuilderMode["Application"] = "application";
13
+ BuilderMode["Browser"] = "browser";
14
+ BuilderMode["Detect"] = "detect";
15
+ })(BuilderMode || (exports.BuilderMode = BuilderMode = {}));
6
16
  /**
7
17
  * The stylesheet language to use for the application's inline component styles.
8
18
  */
@@ -267,6 +267,12 @@
267
267
  "type": "string"
268
268
  }
269
269
  },
270
+ "builderMode": {
271
+ "type": "string",
272
+ "description": "Determines how to build the code under test. If set to 'detect', attempts to follow the development builder.",
273
+ "enum": ["detect", "browser", "application"],
274
+ "default": "browser"
275
+ },
270
276
  "webWorkerTsConfig": {
271
277
  "type": "string",
272
278
  "description": "TypeScript configuration for Web Worker modules."
@@ -62,7 +62,8 @@ async function getCommonConfig(wco) {
62
62
  // Load ESM `@angular/compiler-cli` using the TypeScript dynamic import workaround.
63
63
  // Once TypeScript provides support for keeping the dynamic import this workaround can be
64
64
  // changed to a direct dynamic import.
65
- const { GLOBAL_DEFS_FOR_TERSER, GLOBAL_DEFS_FOR_TERSER_WITH_AOT, VERSION: NG_VERSION, } = await (0, load_esm_1.loadEsmModule)('@angular/compiler-cli');
65
+ const { VERSION: NG_VERSION } = await (0, load_esm_1.loadEsmModule)('@angular/compiler-cli');
66
+ const { GLOBAL_DEFS_FOR_TERSER, GLOBAL_DEFS_FOR_TERSER_WITH_AOT } = await (0, load_esm_1.loadEsmModule)('@angular/compiler-cli/private/tooling');
66
67
  // determine hashing format
67
68
  const hashFormat = (0, helpers_1.getOutputHashFormat)(buildOptions.outputHashing);
68
69
  if (buildOptions.progress) {
@@ -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.0.0-next.0';
13
+ const VERSION = '19.0.0-next.10';
14
14
  function hasCacheMetadata(value) {
15
15
  return (!!value &&
16
16
  typeof value === 'object' &&
@@ -273,11 +273,6 @@ function unwrapTemplateLiteral(path, utils) {
273
273
  const [expressions] = utils.unwrapExpressionsFromTemplateLiteral(path.get('quasi'));
274
274
  return [messageParts, expressions];
275
275
  }
276
- function unwrapLocalizeCall(path, utils) {
277
- const [messageParts] = utils.unwrapMessagePartsFromLocalizeCall(path);
278
- const [expressions] = utils.unwrapSubstitutionsFromLocalizeCall(path);
279
- return [messageParts, expressions];
280
- }
281
276
  async function loadLocaleData(path, optimize) {
282
277
  // The path is validated during option processing before the build starts
283
278
  const content = await fs.readFile(path, 'utf8');
@@ -22,7 +22,7 @@ async function findTailwindConfigurationFile(workspaceRoot, projectRoot) {
22
22
  files: new Set(entries),
23
23
  })));
24
24
  // A configuration file can exist in the project or workspace root
25
- for await (const { root, files } of dirEntries) {
25
+ for (const { root, files } of await Promise.all(dirEntries)) {
26
26
  for (const potentialConfig of tailwindConfigFiles) {
27
27
  if (files.has(potentialConfig)) {
28
28
  return (0, node_path_1.join)(root, potentialConfig);
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.dev/license
7
- */
8
- import { BuilderContext } from '@angular-devkit/architect';
9
- import { Schema as BrowserBuilderOptions } from './schema';
10
- export declare function logBuilderStatusWarnings(options: BrowserBuilderOptions, { logger }: BuilderContext): void;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- /**
3
- * @license
4
- * Copyright Google LLC All Rights Reserved.
5
- *
6
- * Use of this source code is governed by an MIT-style license that can be
7
- * found in the LICENSE file at https://angular.dev/license
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.logBuilderStatusWarnings = logBuilderStatusWarnings;
11
- const UNSUPPORTED_OPTIONS = [
12
- // * Always enabled with esbuild
13
- // 'commonChunk',
14
- // * Unused by builder and will be removed in a future release
15
- 'vendorChunk',
16
- 'resourcesOutputPath',
17
- // * Currently unsupported by esbuild
18
- 'webWorkerTsConfig',
19
- ];
20
- function logBuilderStatusWarnings(options, { logger }) {
21
- // Validate supported options
22
- for (const unsupportedOption of UNSUPPORTED_OPTIONS) {
23
- const value = options[unsupportedOption];
24
- if (value === undefined || value === false) {
25
- continue;
26
- }
27
- if (Array.isArray(value) && value.length === 0) {
28
- continue;
29
- }
30
- if (typeof value === 'object' && Object.keys(value).length === 0) {
31
- continue;
32
- }
33
- if (unsupportedOption === 'vendorChunk' || unsupportedOption === 'resourcesOutputPath') {
34
- logger.warn(`The '${unsupportedOption}' option is not used by this builder and will be ignored.`);
35
- continue;
36
- }
37
- logger.warn(`The '${unsupportedOption}' option is not yet supported by this builder.`);
38
- }
39
- }