@angular-devkit/build-angular 21.2.0 → 22.0.0-next.0

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 (72) hide show
  1. package/README.md +0 -1
  2. package/builders.json +0 -20
  3. package/package.json +23 -40
  4. package/src/builders/app-shell/index.js +2 -2
  5. package/src/builders/app-shell/index.js.map +1 -1
  6. package/src/builders/karma/index.js +1 -1
  7. package/src/builders/karma/index.js.map +1 -1
  8. package/src/builders/server/index.js +1 -0
  9. package/src/builders/server/index.js.map +1 -1
  10. package/src/builders/ssr-dev-server/utils.js +2 -6
  11. package/src/builders/ssr-dev-server/utils.js.map +1 -1
  12. package/src/index.d.ts +0 -1
  13. package/src/index.js +1 -3
  14. package/src/index.js.map +1 -1
  15. package/src/tools/webpack/utils/stats.js +1 -2
  16. package/src/tools/webpack/utils/stats.js.map +1 -1
  17. package/src/utils/index.d.ts +0 -1
  18. package/src/utils/index.js +0 -1
  19. package/src/utils/index.js.map +1 -1
  20. package/src/utils/normalize-asset-patterns.js +1 -1
  21. package/src/utils/normalize-asset-patterns.js.map +1 -1
  22. package/src/utils/normalize-cache.js +1 -1
  23. package/src/utils/process-bundle.js +5 -5
  24. package/src/utils/process-bundle.js.map +1 -1
  25. package/src/builders/jest/index.d.ts +0 -11
  26. package/src/builders/jest/index.js +0 -213
  27. package/src/builders/jest/index.js.map +0 -1
  28. package/src/builders/jest/init-test-bed.mjs +0 -24
  29. package/src/builders/jest/jest-global.mjs +0 -19
  30. package/src/builders/jest/jest.config.mjs +0 -11
  31. package/src/builders/jest/options.d.ts +0 -21
  32. package/src/builders/jest/options.js +0 -25
  33. package/src/builders/jest/options.js.map +0 -1
  34. package/src/builders/jest/schema.d.ts +0 -26
  35. package/src/builders/jest/schema.js +0 -5
  36. package/src/builders/jest/schema.js.map +0 -1
  37. package/src/builders/jest/schema.json +0 -44
  38. package/src/builders/protractor/index.d.ts +0 -16
  39. package/src/builders/protractor/index.js +0 -177
  40. package/src/builders/protractor/index.js.map +0 -1
  41. package/src/builders/protractor/schema.d.ts +0 -47
  42. package/src/builders/protractor/schema.js +0 -5
  43. package/src/builders/protractor/schema.js.map +0 -1
  44. package/src/builders/protractor/schema.json +0 -58
  45. package/src/builders/protractor-error/index.d.ts +0 -10
  46. package/src/builders/protractor-error/index.js +0 -15
  47. package/src/builders/protractor-error/index.js.map +0 -1
  48. package/src/builders/web-test-runner/builder-status-warnings.d.ts +0 -11
  49. package/src/builders/web-test-runner/builder-status-warnings.js +0 -46
  50. package/src/builders/web-test-runner/builder-status-warnings.js.map +0 -1
  51. package/src/builders/web-test-runner/index.d.ts +0 -10
  52. package/src/builders/web-test-runner/index.js +0 -162
  53. package/src/builders/web-test-runner/index.js.map +0 -1
  54. package/src/builders/web-test-runner/jasmine_runner.js +0 -91
  55. package/src/builders/web-test-runner/options.d.ts +0 -24
  56. package/src/builders/web-test-runner/options.js +0 -26
  57. package/src/builders/web-test-runner/options.js.map +0 -1
  58. package/src/builders/web-test-runner/schema.d.ts +0 -192
  59. package/src/builders/web-test-runner/schema.js +0 -16
  60. package/src/builders/web-test-runner/schema.js.map +0 -1
  61. package/src/builders/web-test-runner/schema.json +0 -297
  62. package/src/builders/web-test-runner/test_page.html +0 -40
  63. package/src/builders/web-test-runner/write-test-files.d.ts +0 -9
  64. package/src/builders/web-test-runner/write-test-files.js +0 -42
  65. package/src/builders/web-test-runner/write-test-files.js.map +0 -1
  66. package/src/utils/run-module-as-observable-fork.d.ts +0 -10
  67. package/src/utils/run-module-as-observable-fork.js +0 -78
  68. package/src/utils/run-module-as-observable-fork.js.map +0 -1
  69. package/src/utils/run-module-worker.js +0 -18
  70. package/src/utils/test-files.d.ts +0 -18
  71. package/src/utils/test-files.js +0 -32
  72. package/src/utils/test-files.js.map +0 -1
@@ -1,78 +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
- var __importDefault = (this && this.__importDefault) || function (mod) {
10
- return (mod && mod.__esModule) ? mod : { "default": mod };
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.runModuleAsObservableFork = runModuleAsObservableFork;
14
- const node_child_process_1 = require("node:child_process");
15
- const node_path_1 = require("node:path");
16
- const rxjs_1 = require("rxjs");
17
- const tree_kill_1 = __importDefault(require("tree-kill"));
18
- function runModuleAsObservableFork(cwd, modulePath, exportName,
19
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
- args) {
21
- return new rxjs_1.Observable((obs) => {
22
- const workerPath = (0, node_path_1.resolve)(__dirname, './run-module-worker.js');
23
- const debugArgRegex = /--inspect(?:-brk|-port)?|--debug(?:-brk|-port)/;
24
- const execArgv = process.execArgv.filter((arg) => {
25
- // Remove debug args.
26
- // Workaround for https://github.com/nodejs/node/issues/9435
27
- return !debugArgRegex.test(arg);
28
- });
29
- const forkOptions = {
30
- cwd,
31
- execArgv,
32
- };
33
- // TODO: support passing in a logger to use as stdio streams
34
- // if (logger) {
35
- // (forkOptions as any).stdio = [
36
- // 'ignore',
37
- // logger.info, // make it a stream
38
- // logger.error, // make it a stream
39
- // ];
40
- // }
41
- const forkedProcess = (0, node_child_process_1.fork)(workerPath, undefined, forkOptions);
42
- // Cleanup.
43
- const killForkedProcess = () => {
44
- if (forkedProcess && forkedProcess.pid) {
45
- (0, tree_kill_1.default)(forkedProcess.pid, 'SIGTERM');
46
- }
47
- };
48
- // Handle child process exit.
49
- const handleChildProcessExit = (code) => {
50
- killForkedProcess();
51
- if (code && code !== 0) {
52
- obs.error();
53
- }
54
- obs.next({ success: true });
55
- obs.complete();
56
- };
57
- forkedProcess.once('exit', handleChildProcessExit);
58
- forkedProcess.once('SIGINT', handleChildProcessExit);
59
- forkedProcess.once('uncaughtException', handleChildProcessExit);
60
- // Handle parent process exit.
61
- const handleParentProcessExit = () => {
62
- killForkedProcess();
63
- };
64
- process.once('exit', handleParentProcessExit);
65
- process.once('SIGINT', handleParentProcessExit);
66
- process.once('uncaughtException', handleParentProcessExit);
67
- // Run module.
68
- forkedProcess.send({
69
- hash: '5d4b9a5c0a4e0f9977598437b0e85bcc',
70
- modulePath,
71
- exportName,
72
- args,
73
- });
74
- // Teardown logic. When unsubscribing, kill the forked process.
75
- return killForkedProcess;
76
- });
77
- }
78
- //# sourceMappingURL=run-module-as-observable-fork.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-module-as-observable-fork.js","sourceRoot":"","sources":["run-module-as-observable-fork.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;AAQH,8DAuEC;AA5ED,2DAAuD;AACvD,yCAAoC;AACpC,+BAAkC;AAClC,0DAAiC;AAEjC,SAAgB,yBAAyB,CACvC,GAAW,EACX,UAAkB,EAClB,UAA8B;AAC9B,8DAA8D;AAC9D,IAAW;IAEX,OAAO,IAAI,iBAAU,CAAC,CAAC,GAAG,EAAE,EAAE;QAC5B,MAAM,UAAU,GAAW,IAAA,mBAAO,EAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;QAExE,MAAM,aAAa,GAAG,gDAAgD,CAAC;QACvE,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/C,qBAAqB;YACrB,4DAA4D;YAC5D,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,MAAM,WAAW,GAAgB;YAC/B,GAAG;YACH,QAAQ;SACT,CAAC;QAEF,4DAA4D;QAC5D,gBAAgB;QAChB,mCAAmC;QACnC,gBAAgB;QAChB,uCAAuC;QACvC,wCAAwC;QACxC,OAAO;QACP,IAAI;QAEJ,MAAM,aAAa,GAAG,IAAA,yBAAI,EAAC,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QAE/D,WAAW;QACX,MAAM,iBAAiB,GAAG,GAA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- *
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
- process.on('message', (message) => {
9
- // Only process messages with the hash in 'run-module-as-observable-fork.ts'.
10
- if (message.hash === '5d4b9a5c0a4e0f9977598437b0e85bcc') {
11
- const requiredModule = require(message.modulePath);
12
- if (message.exportName) {
13
- requiredModule[message.exportName](...message.args);
14
- } else {
15
- requiredModule(...message.args);
16
- }
17
- }
18
- });
@@ -1,18 +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 { glob as globFn } from 'tinyglobby';
9
- /**
10
- * Finds all test files in the project.
11
- *
12
- * @param options The builder options describing where to find tests.
13
- * @param workspaceRoot The path to the root directory of the workspace.
14
- * @param glob A promisified implementation of the `glob` module. Only intended for
15
- * testing purposes.
16
- * @returns A set of all test files in the project.
17
- */
18
- export declare function findTestFiles(include: string[], exclude: string[], workspaceRoot: string, glob?: typeof globFn): Promise<Set<string>>;
@@ -1,32 +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.findTestFiles = findTestFiles;
11
- const tinyglobby_1 = require("tinyglobby");
12
- /**
13
- * Finds all test files in the project.
14
- *
15
- * @param options The builder options describing where to find tests.
16
- * @param workspaceRoot The path to the root directory of the workspace.
17
- * @param glob A promisified implementation of the `glob` module. Only intended for
18
- * testing purposes.
19
- * @returns A set of all test files in the project.
20
- */
21
- async function findTestFiles(include, exclude, workspaceRoot, glob = tinyglobby_1.glob) {
22
- const globOptions = {
23
- cwd: workspaceRoot,
24
- ignore: ['node_modules/**'].concat(exclude),
25
- braceExpansion: false, // Do not expand `a{b,c}` to `ab,ac`.
26
- extglob: false, // Disable "extglob" patterns.
27
- };
28
- const included = await Promise.all(include.map((pattern) => glob(pattern, globOptions)));
29
- // Flatten and deduplicate any files found in multiple include patterns.
30
- return new Set(included.flat());
31
- }
32
- //# sourceMappingURL=test-files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test-files.js","sourceRoot":"","sources":["test-files.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAaH,sCAiBC;AA5BD,2CAAyD;AAEzD;;;;;;;;GAQG;AACI,KAAK,UAAU,aAAa,CACjC,OAAiB,EACjB,OAAiB,EACjB,aAAqB,EACrB,OAAsB,iBAAM;IAE5B,MAAM,WAAW,GAAgB;QAC/B,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;QAC3C,cAAc,EAAE,KAAK,EAAE,qCAAqC;QAC5D,OAAO,EAAE,KAAK,EAAE,8BAA8B;KAC/C,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAEzF,wEAAwE;IACxE,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AAClC,CAAC"}