@angular/compiler-cli 14.0.0-next.9 → 14.0.0-rc.2

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 (102) hide show
  1. package/bundles/{chunk-LX5Q27EF.js → chunk-7J66ZDC5.js} +3 -3
  2. package/bundles/{chunk-LX5Q27EF.js.map → chunk-7J66ZDC5.js.map} +0 -0
  3. package/bundles/{chunk-W6KM7BUM.js → chunk-AKU7LV22.js} +6 -6
  4. package/bundles/{chunk-W6KM7BUM.js.map → chunk-AKU7LV22.js.map} +0 -0
  5. package/bundles/{chunk-WGBFSDVQ.js → chunk-BFPVXDJN.js} +7 -7
  6. package/bundles/{chunk-WGBFSDVQ.js.map → chunk-BFPVXDJN.js.map} +0 -0
  7. package/bundles/{chunk-SNAJD4VP.js → chunk-GGBQTGO6.js} +52 -41
  8. package/bundles/chunk-GGBQTGO6.js.map +6 -0
  9. package/bundles/{chunk-R3C7RFJ4.js → chunk-HMWNYAAE.js} +2 -2
  10. package/bundles/{chunk-R3C7RFJ4.js.map → chunk-HMWNYAAE.js.map} +0 -0
  11. package/bundles/{chunk-T7MYRXIE.js → chunk-MURZUYM7.js} +7 -7
  12. package/bundles/{chunk-T7MYRXIE.js.map → chunk-MURZUYM7.js.map} +0 -0
  13. package/bundles/{chunk-R4NY3TJC.js → chunk-QK4SXRQA.js} +5 -5
  14. package/bundles/{chunk-R4NY3TJC.js.map → chunk-QK4SXRQA.js.map} +0 -0
  15. package/bundles/{chunk-34QUU6SJ.js → chunk-RV5PLZZB.js} +130 -85
  16. package/bundles/chunk-RV5PLZZB.js.map +6 -0
  17. package/bundles/{chunk-UMDDHI5B.js → chunk-SFACRVMZ.js} +27 -26
  18. package/bundles/chunk-SFACRVMZ.js.map +6 -0
  19. package/bundles/{chunk-AGDZS4UG.js → chunk-SYV2KBTF.js} +5 -5
  20. package/bundles/{chunk-AGDZS4UG.js.map → chunk-SYV2KBTF.js.map} +0 -0
  21. package/bundles/{chunk-OLGEBPBY.js → chunk-U2VFXNL7.js} +4 -4
  22. package/bundles/{chunk-OLGEBPBY.js.map → chunk-U2VFXNL7.js.map} +0 -0
  23. package/bundles/{chunk-FJDIFR5C.js → chunk-VEAB5CR7.js} +97 -61
  24. package/bundles/chunk-VEAB5CR7.js.map +6 -0
  25. package/bundles/{chunk-M3IOYIU5.js → chunk-VLER5B3O.js} +1051 -982
  26. package/bundles/chunk-VLER5B3O.js.map +6 -0
  27. package/bundles/{chunk-GYVY4Y2L.js → chunk-VSZPIAX6.js} +1173 -881
  28. package/bundles/chunk-VSZPIAX6.js.map +6 -0
  29. package/bundles/{chunk-2IMT6JFI.js → chunk-ZJCM37WF.js} +6 -6
  30. package/bundles/{chunk-2IMT6JFI.js.map → chunk-ZJCM37WF.js.map} +0 -0
  31. package/bundles/index.js +13 -14
  32. package/bundles/index.js.map +1 -1
  33. package/bundles/linker/babel/index.js +16 -16
  34. package/bundles/linker/babel/index.js.map +1 -1
  35. package/bundles/linker/index.js +4 -4
  36. package/bundles/ngcc/index.js +12 -12
  37. package/bundles/ngcc/main-ngcc.js +13 -13
  38. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
  39. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
  40. package/bundles/private/bazel.js +1 -1
  41. package/bundles/private/localize.js +3 -3
  42. package/bundles/private/migrations.js +5 -5
  43. package/bundles/private/tooling.js +2 -2
  44. package/bundles/src/bin/ng_xi18n.js +10 -10
  45. package/bundles/src/bin/ngc.js +8 -8
  46. package/bundles_metadata.json +1 -1
  47. package/ngcc/src/dependencies/module_resolver.d.ts +5 -2
  48. package/ngcc/src/execution/cluster/api.d.ts +1 -1
  49. package/ngcc/src/execution/cluster/package_json_updater.d.ts +1 -1
  50. package/ngcc/src/execution/tasks/api.d.ts +2 -2
  51. package/ngcc/src/packages/build_marker.d.ts +1 -1
  52. package/ngcc/src/packages/entry_point.d.ts +1 -7
  53. package/ngcc/src/utils.d.ts +26 -0
  54. package/ngcc/src/writing/package_json_updater.d.ts +2 -1
  55. package/package.json +4 -4
  56. package/src/ngtsc/annotations/common/index.d.ts +1 -0
  57. package/src/ngtsc/annotations/common/src/schema.d.ts +12 -0
  58. package/src/ngtsc/annotations/common/src/util.d.ts +7 -1
  59. package/src/ngtsc/annotations/component/src/handler.d.ts +1 -1
  60. package/src/ngtsc/annotations/component/src/metadata.d.ts +7 -8
  61. package/src/ngtsc/annotations/component/src/resources.d.ts +1 -1
  62. package/src/ngtsc/annotations/ng_module/index.d.ts +1 -0
  63. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +10 -26
  64. package/src/ngtsc/annotations/ng_module/src/module_with_providers.d.ts +26 -0
  65. package/src/ngtsc/core/api/src/adapter.d.ts +12 -1
  66. package/src/ngtsc/core/src/host.d.ts +9 -2
  67. package/src/ngtsc/diagnostics/src/error_code.d.ts +4 -0
  68. package/src/ngtsc/metadata/src/api.d.ts +32 -5
  69. package/src/ngtsc/metadata/src/util.d.ts +1 -0
  70. package/src/ngtsc/partial_evaluator/index.d.ts +1 -0
  71. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +9 -1
  72. package/src/ngtsc/partial_evaluator/src/interface.d.ts +2 -1
  73. package/src/ngtsc/partial_evaluator/src/result.d.ts +2 -1
  74. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +19 -0
  75. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +2 -2
  76. package/src/ngtsc/scope/index.d.ts +4 -3
  77. package/src/ngtsc/scope/src/api.d.ts +36 -14
  78. package/src/ngtsc/scope/src/component_scope.d.ts +2 -16
  79. package/src/ngtsc/scope/src/local.d.ts +4 -11
  80. package/src/ngtsc/scope/src/standalone.d.ts +26 -0
  81. package/src/ngtsc/scope/src/typecheck.d.ts +1 -1
  82. package/src/ngtsc/scope/src/util.d.ts +15 -0
  83. package/src/ngtsc/transform/src/compilation.d.ts +3 -1
  84. package/src/ngtsc/typecheck/api/api.d.ts +1 -0
  85. package/src/ngtsc/typecheck/api/checker.d.ts +6 -6
  86. package/src/ngtsc/typecheck/api/completion.d.ts +3 -3
  87. package/src/ngtsc/typecheck/api/context.d.ts +2 -1
  88. package/src/ngtsc/typecheck/api/symbols.d.ts +23 -16
  89. package/src/ngtsc/typecheck/src/checker.d.ts +5 -4
  90. package/src/ngtsc/typecheck/src/completion.d.ts +6 -5
  91. package/src/ngtsc/typecheck/src/context.d.ts +1 -1
  92. package/src/ngtsc/typecheck/src/dom.d.ts +4 -2
  93. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +4 -3
  94. package/src/ngtsc/typecheck/src/ts_util.d.ts +7 -0
  95. package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -1
  96. package/bundles/chunk-34QUU6SJ.js.map +0 -6
  97. package/bundles/chunk-FJDIFR5C.js.map +0 -6
  98. package/bundles/chunk-GYVY4Y2L.js.map +0 -6
  99. package/bundles/chunk-M3IOYIU5.js.map +0 -6
  100. package/bundles/chunk-SNAJD4VP.js.map +0 -6
  101. package/bundles/chunk-UMDDHI5B.js.map +0 -6
  102. package/src/ngtsc/annotations/component/src/scope.d.ts +0 -20
@@ -6,11 +6,9 @@
6
6
  import {
7
7
  CycleAnalyzer,
8
8
  ImportGraph,
9
- LocalModuleScopeRegistry,
10
- MetadataDtsModuleScopeResolver,
11
- TypeCheckScopeRegistry,
9
+ isShim,
12
10
  readConfiguration
13
- } from "./chunk-M3IOYIU5.js";
11
+ } from "./chunk-VLER5B3O.js";
14
12
  import {
15
13
  CompilationMode,
16
14
  ComponentDecoratorHandler,
@@ -23,15 +21,18 @@ import {
23
21
  InjectableClassRegistry,
24
22
  InjectableDecoratorHandler,
25
23
  LocalMetadataRegistry,
24
+ LocalModuleScopeRegistry,
25
+ MetadataDtsModuleScopeResolver,
26
26
  NgModuleDecoratorHandler,
27
27
  PartialEvaluator,
28
28
  PipeDecoratorHandler,
29
29
  ResourceRegistry,
30
30
  TraitCompiler,
31
31
  TraitState,
32
+ TypeCheckScopeRegistry,
32
33
  forwardRefResolver,
33
34
  readBaseClass
34
- } from "./chunk-GYVY4Y2L.js";
35
+ } from "./chunk-VSZPIAX6.js";
35
36
  import {
36
37
  ClassMemberKind,
37
38
  KnownDeclaration,
@@ -42,15 +43,15 @@ import {
42
43
  isNamedFunctionDeclaration,
43
44
  isNamedVariableDeclaration,
44
45
  reflectObjectLiteral
45
- } from "./chunk-2IMT6JFI.js";
46
+ } from "./chunk-ZJCM37WF.js";
46
47
  import {
47
48
  ConsoleLogger,
48
49
  LogLevel
49
- } from "./chunk-LX5Q27EF.js";
50
+ } from "./chunk-7J66ZDC5.js";
50
51
  import {
51
52
  ContentOrigin,
52
53
  SourceFileLoader
53
- } from "./chunk-WGBFSDVQ.js";
54
+ } from "./chunk-BFPVXDJN.js";
54
55
  import {
55
56
  AbsoluteModuleStrategy,
56
57
  ImportManager,
@@ -71,7 +72,7 @@ import {
71
72
  translateStatement,
72
73
  translateType,
73
74
  validateAndRewriteCoreSymbol
74
- } from "./chunk-UMDDHI5B.js";
75
+ } from "./chunk-SFACRVMZ.js";
75
76
  import {
76
77
  LogicalFileSystem,
77
78
  NgtscCompilerHost,
@@ -83,25 +84,25 @@ import {
83
84
  isRooted,
84
85
  relative,
85
86
  toRelativeImport
86
- } from "./chunk-T7MYRXIE.js";
87
+ } from "./chunk-MURZUYM7.js";
87
88
  import {
88
89
  NOOP_PERF_RECORDER
89
- } from "./chunk-R4NY3TJC.js";
90
+ } from "./chunk-QK4SXRQA.js";
90
91
  import {
91
92
  __spreadProps,
92
93
  __spreadValues
93
94
  } from "./chunk-GMSUYBZP.js";
94
95
 
95
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
96
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
96
97
  import ts23 from "typescript";
97
98
 
98
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
99
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
99
100
  import ts7 from "typescript";
100
101
 
101
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
102
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
102
103
  import ts6 from "typescript";
103
104
 
104
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/utils.mjs
105
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/utils.mjs
105
106
  import ts from "typescript";
106
107
  function isDefined(value) {
107
108
  return value !== void 0 && value !== null;
@@ -171,8 +172,28 @@ function stripDollarSuffix(value) {
171
172
  function stripExtension(fileName) {
172
173
  return fileName.replace(/\..+$/, "");
173
174
  }
175
+ function loadJson(fs, packageJsonPath) {
176
+ try {
177
+ return JSON.parse(fs.readFile(packageJsonPath));
178
+ } catch {
179
+ return null;
180
+ }
181
+ }
182
+ function loadSecondaryEntryPointInfoForApfV14(fs, primaryPackageJson, packagePath, entryPointPath) {
183
+ const exportMap = primaryPackageJson == null ? void 0 : primaryPackageJson.exports;
184
+ if (!isExportObject(exportMap)) {
185
+ return null;
186
+ }
187
+ const relativeEntryPointPath = fs.relative(packagePath, entryPointPath);
188
+ const entryPointExportKey = `./${relativeEntryPointPath}`;
189
+ const entryPointInfo = exportMap[entryPointExportKey];
190
+ return isExportObject(entryPointInfo) ? entryPointInfo : null;
191
+ }
192
+ function isExportObject(thing) {
193
+ return typeof thing === "object" && thing !== null && !Array.isArray(thing);
194
+ }
174
195
 
175
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.mjs
196
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_umd_utils.mjs
176
197
  import ts2 from "typescript";
177
198
  function findNamespaceOfIdentifier(id) {
178
199
  return id.parent && ts2.isPropertyAccessExpression(id.parent) && id.parent.name === id && ts2.isIdentifier(id.parent.expression) ? id.parent.expression : null;
@@ -258,10 +279,10 @@ function skipAliases(node) {
258
279
  return node;
259
280
  }
260
281
 
261
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
282
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
262
283
  import ts4 from "typescript";
263
284
 
264
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/util.mjs
285
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/util.mjs
265
286
  function isWithinPackage(packagePath, filePath) {
266
287
  const relativePath = relative(packagePath, filePath);
267
288
  return isLocalRelativePath(relativePath) && !relativePath.startsWith("node_modules/");
@@ -276,13 +297,13 @@ var NoopDependencyTracker = class {
276
297
  };
277
298
  var NOOP_DEPENDENCY_TRACKER = new NoopDependencyTracker();
278
299
 
279
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/utils.mjs
300
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/utils.mjs
280
301
  import ts3 from "typescript";
281
302
  function stripParentheses(node) {
282
303
  return ts3.isParenthesizedExpression(node) ? node.expression : node;
283
304
  }
284
305
 
285
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
306
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm2015_host.mjs
286
307
  var DECORATORS = "decorators";
287
308
  var PROP_DECORATORS = "propDecorators";
288
309
  var CONSTRUCTOR = "__constructor";
@@ -1510,7 +1531,7 @@ function getOuterNodeFromInnerDeclaration(node) {
1510
1531
  return outerNode;
1511
1532
  }
1512
1533
 
1513
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm5_host.mjs
1534
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/esm5_host.mjs
1514
1535
  import ts5 from "typescript";
1515
1536
  var Esm5ReflectionHost = class extends Esm2015ReflectionHost {
1516
1537
  getBaseClassExpression(clazz) {
@@ -1844,7 +1865,7 @@ function getIifeFn(classSymbol) {
1844
1865
  return iifeWrapper && ts5.isFunctionExpression(iifeWrapper) ? iifeWrapper : null;
1845
1866
  }
1846
1867
 
1847
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
1868
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/umd_host.mjs
1848
1869
  var UmdReflectionHost = class extends Esm5ReflectionHost {
1849
1870
  constructor(logger, isCore, src, dts = null) {
1850
1871
  super(logger, isCore, src, dts);
@@ -2344,7 +2365,7 @@ function isExportsIdentifier(node) {
2344
2365
  return ts6.isIdentifier(node) && node.text === "exports";
2345
2366
  }
2346
2367
 
2347
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
2368
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point.mjs
2348
2369
  var SUPPORTED_FORMAT_PROPERTIES = ["fesm2015", "fesm5", "es2015", "esm2015", "esm5", "main", "module", "browser"];
2349
2370
  var NO_ENTRY_POINT = "no-entry-point";
2350
2371
  var IGNORED_ENTRY_POINT = "ignored-entry-point";
@@ -2352,21 +2373,21 @@ var INCOMPATIBLE_ENTRY_POINT = "incompatible-entry-point";
2352
2373
  function getEntryPointInfo(fs, config, logger, packagePath, entryPointPath) {
2353
2374
  const packagePackageJsonPath = fs.resolve(packagePath, "package.json");
2354
2375
  const entryPointPackageJsonPath = fs.resolve(entryPointPath, "package.json");
2355
- const loadedPackagePackageJson = loadPackageJson(fs, packagePackageJsonPath);
2356
- const loadedEntryPointPackageJson = packagePackageJsonPath === entryPointPackageJsonPath ? loadedPackagePackageJson : loadPackageJson(fs, entryPointPackageJsonPath);
2376
+ const loadedPackagePackageJson = loadJson(fs, packagePackageJsonPath);
2377
+ const loadedEntryPointPackageJson = packagePackageJsonPath === entryPointPackageJsonPath ? loadedPackagePackageJson : loadOrSynthesizeSecondaryPackageJson(fs, packagePath, entryPointPath, entryPointPackageJsonPath, loadedPackagePackageJson);
2357
2378
  const { packageName, packageVersion } = getPackageNameAndVersion(fs, packagePath, loadedPackagePackageJson, loadedEntryPointPackageJson);
2358
2379
  const repositoryUrl = getRepositoryUrl(loadedPackagePackageJson);
2359
2380
  const packageConfig = config.getPackageConfig(packageName, packagePath, packageVersion);
2360
2381
  const entryPointConfig = packageConfig.entryPoints.get(entryPointPath);
2361
2382
  let entryPointPackageJson;
2362
2383
  if (entryPointConfig === void 0) {
2363
- if (!fs.exists(entryPointPackageJsonPath)) {
2384
+ if (loadedEntryPointPackageJson !== null) {
2385
+ entryPointPackageJson = loadedEntryPointPackageJson;
2386
+ } else if (!fs.exists(entryPointPackageJsonPath)) {
2364
2387
  return NO_ENTRY_POINT;
2365
- } else if (loadedEntryPointPackageJson === null) {
2388
+ } else {
2366
2389
  logger.warn(`Failed to read entry point info from invalid 'package.json' file: ${entryPointPackageJsonPath}`);
2367
2390
  return INCOMPATIBLE_ENTRY_POINT;
2368
- } else {
2369
- entryPointPackageJson = loadedEntryPointPackageJson;
2370
2391
  }
2371
2392
  } else if (entryPointConfig.ignore === true) {
2372
2393
  return IGNORED_ENTRY_POINT;
@@ -2430,12 +2451,28 @@ function getEntryPointFormat(fs, entryPoint, property2) {
2430
2451
  return void 0;
2431
2452
  }
2432
2453
  }
2433
- function loadPackageJson(fs, packageJsonPath) {
2434
- try {
2435
- return JSON.parse(fs.readFile(packageJsonPath));
2436
- } catch {
2454
+ function loadOrSynthesizeSecondaryPackageJson(fs, packagePath, entryPointPath, secondaryPackageJsonPath, primaryPackageJson) {
2455
+ const loadedPackageJson = loadJson(fs, secondaryPackageJsonPath);
2456
+ if (loadedPackageJson !== null) {
2457
+ return loadedPackageJson;
2458
+ }
2459
+ const entryPointInfo = loadSecondaryEntryPointInfoForApfV14(fs, primaryPackageJson, packagePath, entryPointPath);
2460
+ if (entryPointInfo === null) {
2437
2461
  return null;
2438
2462
  }
2463
+ const synthesizedPackageJson = {
2464
+ synthesized: true,
2465
+ name: `${primaryPackageJson.name}/${fs.relative(packagePath, entryPointPath)}`
2466
+ };
2467
+ for (const prop of [...SUPPORTED_FORMAT_PROPERTIES, "types", "typings"]) {
2468
+ const packageRelativePath = entryPointInfo[prop];
2469
+ if (typeof packageRelativePath === "string") {
2470
+ const absolutePath = fs.resolve(packagePath, packageRelativePath);
2471
+ const entryPointRelativePath = fs.relative(entryPointPath, absolutePath);
2472
+ synthesizedPackageJson[prop] = fs.isRooted(entryPointRelativePath) || entryPointRelativePath.startsWith(".") ? entryPointRelativePath : `./${entryPointRelativePath}`;
2473
+ }
2474
+ }
2475
+ return synthesizedPackageJson;
2439
2476
  }
2440
2477
  function sniffModuleFormat(fs, sourceFilePath) {
2441
2478
  const resolvedPath = resolveFileWithPostfixes(fs, sourceFilePath, ["", ".js", "/index.js"]);
@@ -2503,7 +2540,7 @@ function getRepositoryUrl(packageJson) {
2503
2540
  return packageJson.repository.url;
2504
2541
  }
2505
2542
 
2506
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/api.mjs
2543
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/api.mjs
2507
2544
  var DtsProcessing;
2508
2545
  (function(DtsProcessing2) {
2509
2546
  DtsProcessing2[DtsProcessing2["Yes"] = 0] = "Yes";
@@ -2512,7 +2549,7 @@ var DtsProcessing;
2512
2549
  })(DtsProcessing || (DtsProcessing = {}));
2513
2550
  var TaskDependencies = Map;
2514
2551
 
2515
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/adjust_cjs_umd_exports.mjs
2552
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/adjust_cjs_umd_exports.mjs
2516
2553
  import ts8 from "typescript";
2517
2554
  function adjustElementAccessExports(sourceText) {
2518
2555
  if (!/exports\[["']/.test(sourceText)) {
@@ -2549,10 +2586,10 @@ function isJsIdentifier(text) {
2549
2586
  return identifierPattern.test(text);
2550
2587
  }
2551
2588
 
2552
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2589
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2553
2590
  import ts10 from "typescript";
2554
2591
 
2555
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/patch_ts_expando_initializer.mjs
2592
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/patch_ts_expando_initializer.mjs
2556
2593
  import ts9 from "typescript";
2557
2594
  function patchTsGetExpandoInitializer() {
2558
2595
  if (isTs31778GetExpandoInitializerFixed()) {
@@ -2657,7 +2694,7 @@ function makeUnsupportedTypeScriptError() {
2657
2694
  return new Error("The TypeScript version used is not supported by ngcc.");
2658
2695
  }
2659
2696
 
2660
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2697
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
2661
2698
  function makeBundleProgram(fs, isCore, pkg, path, r3FileName, options, host, additionalFiles = []) {
2662
2699
  const r3SymbolsPath = isCore ? findR3SymbolsPath(fs, fs.dirname(path), r3FileName) : null;
2663
2700
  let rootPaths = r3SymbolsPath ? [path, r3SymbolsPath, ...additionalFiles] : [path, ...additionalFiles];
@@ -2687,7 +2724,7 @@ function findR3SymbolsPath(fs, directory, filename) {
2687
2724
  return null;
2688
2725
  }
2689
2726
 
2690
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/ngcc_compiler_host.mjs
2727
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/ngcc_compiler_host.mjs
2691
2728
  import ts11 from "typescript";
2692
2729
  var NgccSourcesCompilerHost = class extends NgtscCompilerHost {
2693
2730
  constructor(fs, options, cache, moduleResolutionCache, packagePath) {
@@ -2732,7 +2769,7 @@ var NgccDtsCompilerHost = class extends NgtscCompilerHost {
2732
2769
  }
2733
2770
  };
2734
2771
 
2735
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/source_file_cache.mjs
2772
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/source_file_cache.mjs
2736
2773
  import ts12 from "typescript";
2737
2774
  var SharedFileCache = class {
2738
2775
  constructor(fs) {
@@ -2835,7 +2872,7 @@ function createModuleResolutionCache(fs) {
2835
2872
  });
2836
2873
  }
2837
2874
 
2838
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point_bundle.mjs
2875
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/entry_point_bundle.mjs
2839
2876
  function createSourceTextProcessor(format) {
2840
2877
  if (format === "umd" || format === "commonjs") {
2841
2878
  return adjustElementAccessExports;
@@ -2884,13 +2921,13 @@ function computePotentialDtsFilesFromJsFiles(fs, srcProgram, formatPath, typings
2884
2921
  return additionalFiles;
2885
2922
  }
2886
2923
 
2887
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
2924
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
2888
2925
  import ts22 from "typescript";
2889
2926
 
2890
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
2927
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
2891
2928
  import { ConstantPool } from "@angular/compiler";
2892
2929
 
2893
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/utils.mjs
2930
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/utils.mjs
2894
2931
  import ts13 from "typescript";
2895
2932
  function isClassDeclaration(clazz) {
2896
2933
  return isNamedClassDeclaration(clazz) || isNamedFunctionDeclaration(clazz) || isNamedVariableDeclaration(clazz);
@@ -2973,7 +3010,7 @@ function reifySourceFile(expr) {
2973
3010
  return stmt.declarationList.declarations[0].initializer;
2974
3011
  }
2975
3012
 
2976
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/missing_injectable_migration.mjs
3013
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/missing_injectable_migration.mjs
2977
3014
  var MissingInjectableMigration = class {
2978
3015
  apply(clazz, host) {
2979
3016
  const decorators = host.reflectionHost.getDecoratorsOfDeclaration(clazz);
@@ -3078,7 +3115,7 @@ function getAngularCoreDecoratorName(decorator) {
3078
3115
  return decorator.import.name;
3079
3116
  }
3080
3117
 
3081
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_child_migration.mjs
3118
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_child_migration.mjs
3082
3119
  var UndecoratedChildMigration = class {
3083
3120
  apply(clazz, host) {
3084
3121
  const moduleMeta = host.metadata.getNgModuleMetadata(new Reference(clazz));
@@ -3113,7 +3150,7 @@ var UndecoratedChildMigration = class {
3113
3150
  }
3114
3151
  };
3115
3152
 
3116
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.mjs
3153
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/migrations/undecorated_parent_migration.mjs
3117
3154
  var UndecoratedParentMigration = class {
3118
3155
  apply(clazz, host) {
3119
3156
  if (!hasDirectiveDecorator(host, clazz) || hasConstructor(host, clazz)) {
@@ -3146,7 +3183,7 @@ function determineBaseClass(clazz, host) {
3146
3183
  return baseClass;
3147
3184
  }
3148
3185
 
3149
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/migration_host.mjs
3186
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/migration_host.mjs
3150
3187
  import ts14 from "typescript";
3151
3188
  var DefaultMigrationHost = class {
3152
3189
  constructor(reflectionHost, metadata, evaluator, compiler, entryPointPath) {
@@ -3206,10 +3243,10 @@ function createMigrationDiagnostic(diagnostic, source, decorator) {
3206
3243
  return clone;
3207
3244
  }
3208
3245
 
3209
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.mjs
3246
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_trait_compiler.mjs
3210
3247
  var NgccTraitCompiler = class extends TraitCompiler {
3211
3248
  constructor(handlers, ngccReflector) {
3212
- super(handlers, ngccReflector, NOOP_PERF_RECORDER, new NoIncrementalBuild(), true, CompilationMode.FULL, new DtsTransformRegistry(), null);
3249
+ super(handlers, ngccReflector, NOOP_PERF_RECORDER, new NoIncrementalBuild(), true, CompilationMode.FULL, new DtsTransformRegistry(), null, { isShim, isResource: () => false });
3213
3250
  this.ngccReflector = ngccReflector;
3214
3251
  }
3215
3252
  get analyzedFiles() {
@@ -3251,10 +3288,10 @@ var NoIncrementalBuild = class {
3251
3288
  }
3252
3289
  };
3253
3290
 
3254
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/types.mjs
3291
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/types.mjs
3255
3292
  var DecorationAnalyses = Map;
3256
3293
 
3257
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
3294
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/decoration_analyzer.mjs
3258
3295
  var NgccResourceLoader = class {
3259
3296
  constructor(fs) {
3260
3297
  this.fs = fs;
@@ -3303,7 +3340,7 @@ var DecorationAnalyzer = class {
3303
3340
  ]);
3304
3341
  this.aliasingHost = this.bundle.entryPoint.generateDeepReexports ? new PrivateExportAliasingHost(this.reflectionHost) : null;
3305
3342
  this.dtsModuleScopeResolver = new MetadataDtsModuleScopeResolver(this.dtsMetaReader, this.aliasingHost);
3306
- this.scopeRegistry = new LocalModuleScopeRegistry(this.metaRegistry, this.dtsModuleScopeResolver, this.refEmitter, this.aliasingHost);
3343
+ this.scopeRegistry = new LocalModuleScopeRegistry(this.metaRegistry, this.fullMetaReader, this.dtsModuleScopeResolver, this.refEmitter, this.aliasingHost);
3307
3344
  this.fullRegistry = new CompoundMetadataRegistry([this.metaRegistry, this.scopeRegistry]);
3308
3345
  this.evaluator = new PartialEvaluator(this.reflectionHost, this.typeChecker, null);
3309
3346
  this.importGraph = new ImportGraph(this.typeChecker, NOOP_PERF_RECORDER);
@@ -3410,7 +3447,7 @@ var DecorationAnalyzer = class {
3410
3447
  }
3411
3448
  };
3412
3449
 
3413
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/module_with_providers_analyzer.mjs
3450
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/module_with_providers_analyzer.mjs
3414
3451
  import ts15 from "typescript";
3415
3452
  var ModuleWithProvidersAnalyses = Map;
3416
3453
  var ModuleWithProvidersAnalyzer = class {
@@ -3549,7 +3586,7 @@ function isAnyKeyword(typeParam) {
3549
3586
  return typeParam.kind === ts15.SyntaxKind.AnyKeyword;
3550
3587
  }
3551
3588
 
3552
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_references_registry.mjs
3589
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/ngcc_references_registry.mjs
3553
3590
  var NgccReferencesRegistry = class {
3554
3591
  constructor(host) {
3555
3592
  this.host = host;
@@ -3570,7 +3607,7 @@ var NgccReferencesRegistry = class {
3570
3607
  }
3571
3608
  };
3572
3609
 
3573
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/private_declarations_analyzer.mjs
3610
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/analysis/private_declarations_analyzer.mjs
3574
3611
  var PrivateDeclarationsAnalyzer = class {
3575
3612
  constructor(host, referencesRegistry) {
3576
3613
  this.host = host;
@@ -3611,7 +3648,7 @@ var PrivateDeclarationsAnalyzer = class {
3611
3648
  }
3612
3649
  };
3613
3650
 
3614
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_host.mjs
3651
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/commonjs_host.mjs
3615
3652
  import ts16 from "typescript";
3616
3653
  var CommonJsReflectionHost = class extends Esm5ReflectionHost {
3617
3654
  constructor(logger, isCore, src, dts = null) {
@@ -3775,7 +3812,7 @@ var CommonJsReflectionHost = class extends Esm5ReflectionHost {
3775
3812
  }
3776
3813
  };
3777
3814
 
3778
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/host/delegating_host.mjs
3815
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/host/delegating_host.mjs
3779
3816
  var DelegatingReflectionHost = class {
3780
3817
  constructor(tsHost, ngccHost) {
3781
3818
  this.tsHost = tsHost;
@@ -3896,16 +3933,16 @@ var DelegatingReflectionHost = class {
3896
3933
  }
3897
3934
  };
3898
3935
 
3899
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
3936
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
3900
3937
  import ts19 from "typescript";
3901
3938
 
3902
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
3939
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
3903
3940
  import ts18 from "typescript";
3904
3941
 
3905
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3942
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3906
3943
  import ts17 from "typescript";
3907
3944
 
3908
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/ngcc_import_rewriter.mjs
3945
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/ngcc_import_rewriter.mjs
3909
3946
  var NgccFlatImportRewriter = class {
3910
3947
  shouldImportSymbol(symbol, specifier) {
3911
3948
  if (specifier === "@angular/core") {
@@ -3926,7 +3963,7 @@ var NgccFlatImportRewriter = class {
3926
3963
  }
3927
3964
  };
3928
3965
 
3929
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/utils.mjs
3966
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/utils.mjs
3930
3967
  function getImportRewriter(r3SymbolsFile, isCore, isFlat) {
3931
3968
  if (isCore && isFlat) {
3932
3969
  return new NgccFlatImportRewriter();
@@ -3940,7 +3977,7 @@ function stripExtension2(filePath) {
3940
3977
  return filePath.replace(/\.(js|d\.ts)$/, "");
3941
3978
  }
3942
3979
 
3943
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3980
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm_rendering_formatter.mjs
3944
3981
  var EsmRenderingFormatter = class {
3945
3982
  constructor(fs, host, isCore) {
3946
3983
  this.fs = fs;
@@ -4100,7 +4137,7 @@ function getEndExceptSemicolon(statement) {
4100
4137
  return lastToken && lastToken.kind === ts17.SyntaxKind.SemicolonToken ? statement.getEnd() - 1 : statement.getEnd();
4101
4138
  }
4102
4139
 
4103
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
4140
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/esm5_rendering_formatter.mjs
4104
4141
  var Esm5RenderingFormatter = class extends EsmRenderingFormatter {
4105
4142
  addDefinitions(output, compiledClass, definitions) {
4106
4143
  const classSymbol = this.host.getClassSymbol(compiledClass.declaration);
@@ -4128,7 +4165,7 @@ Expected an ES5 IIFE wrapped function. But got:
4128
4165
  }
4129
4166
  };
4130
4167
 
4131
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
4168
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/commonjs_rendering_formatter.mjs
4132
4169
  var CommonJsRenderingFormatter = class extends Esm5RenderingFormatter {
4133
4170
  constructor(fs, commonJsHost, isCore) {
4134
4171
  super(fs, commonJsHost, isCore);
@@ -4177,15 +4214,15 @@ exports.${e.asAlias} = ${importNamespace}${namedImport.symbol};`;
4177
4214
  }
4178
4215
  };
4179
4216
 
4180
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4217
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4181
4218
  import MagicString from "magic-string";
4182
4219
  import ts20 from "typescript";
4183
4220
 
4184
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/constants.mjs
4221
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/constants.mjs
4185
4222
  var IMPORT_PREFIX = "\u0275ngcc";
4186
4223
  var NGCC_TIMED_OUT_EXIT_CODE = 177;
4187
4224
 
4188
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
4225
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/source_maps.mjs
4189
4226
  import mapHelpers from "convert-source-map";
4190
4227
  function renderSourceAndMap(logger, fs, sourceFile, generatedMagicString) {
4191
4228
  var _a;
@@ -4220,7 +4257,7 @@ ${sourceMapComment}` },
4220
4257
  }
4221
4258
  }
4222
4259
 
4223
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4260
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/dts_renderer.mjs
4224
4261
  var DtsRenderInfo = class {
4225
4262
  constructor() {
4226
4263
  this.classInfo = [];
@@ -4321,14 +4358,14 @@ function markForEmitAsSingleLine(node) {
4321
4358
  ts20.forEachChild(node, markForEmitAsSingleLine);
4322
4359
  }
4323
4360
 
4324
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4361
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4325
4362
  import { jsDocComment, WrappedNodeExpr, WritePropExpr } from "@angular/compiler";
4326
4363
  import MagicString2 from "magic-string";
4327
4364
 
4328
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/rendering_formatter.mjs
4365
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/rendering_formatter.mjs
4329
4366
  var RedundantDecoratorMap = Map;
4330
4367
 
4331
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4368
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/renderer.mjs
4332
4369
  var Renderer = class {
4333
4370
  constructor(host, srcFormatter, fs, logger, bundle, tsConfig = null) {
4334
4371
  this.host = host;
@@ -4431,7 +4468,7 @@ function createAssignmentStatement(receiverName, propName, initializer, leadingC
4431
4468
  return statement;
4432
4469
  }
4433
4470
 
4434
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.mjs
4471
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.mjs
4435
4472
  import ts21 from "typescript";
4436
4473
  var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
4437
4474
  constructor(fs, umdHost, isCore) {
@@ -4547,7 +4584,7 @@ function getGlobalIdentifier(i) {
4547
4584
  return i.specifier.replace(/^@angular\//, "ng.").replace(/^@/, "").replace(/\//g, ".").replace(/[-_]+(.?)/g, (_, c) => c.toUpperCase()).replace(/^./, (c) => c.toLowerCase());
4548
4585
  }
4549
4586
 
4550
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
4587
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/transformer.mjs
4551
4588
  var Transformer = class {
4552
4589
  constructor(fs, logger, tsConfig = null) {
4553
4590
  this.fs = fs;
@@ -4628,7 +4665,7 @@ function hasErrors(diagnostics) {
4628
4665
  return diagnostics.some((d) => d.category === ts22.DiagnosticCategory.Error);
4629
4666
  }
4630
4667
 
4631
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
4668
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
4632
4669
  function getCreateCompileFn(fileSystem, logger, fileWriter, enableI18nLegacyMessageIdFormat, tsConfig, pathMappings) {
4633
4670
  return (beforeWritingFiles, onTaskCompleted) => {
4634
4671
  const transformer = new Transformer(fileSystem, logger, tsConfig);
@@ -4667,10 +4704,10 @@ ${errors}`);
4667
4704
  };
4668
4705
  }
4669
4706
 
4670
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4707
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4671
4708
  import * as os from "os";
4672
4709
 
4673
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/path_mappings.mjs
4710
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/path_mappings.mjs
4674
4711
  function getPathMappingsFromTsConfig(fs, tsConfig, projectPath) {
4675
4712
  if (tsConfig !== null && tsConfig.options.baseUrl !== void 0 && tsConfig.options.paths !== void 0) {
4676
4713
  return {
@@ -4680,7 +4717,7 @@ function getPathMappingsFromTsConfig(fs, tsConfig, projectPath) {
4680
4717
  }
4681
4718
  }
4682
4719
 
4683
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/in_place_file_writer.mjs
4720
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/in_place_file_writer.mjs
4684
4721
  var NGCC_BACKUP_EXTENSION = ".__ivy_ngcc_bak";
4685
4722
  var InPlaceFileWriter = class {
4686
4723
  constructor(fs, logger, errorOnFailedEntryPoint) {
@@ -4729,7 +4766,7 @@ This error may be caused by one of the following:
4729
4766
  }
4730
4767
  };
4731
4768
 
4732
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.mjs
4769
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/new_entry_point_file_writer.mjs
4733
4770
  var NGCC_DIRECTORY = "__ivy_ngcc__";
4734
4771
  var NGCC_PROPERTY_EXTENSION = "_ivy_ngcc";
4735
4772
  var NewEntryPointFileWriter = class extends InPlaceFileWriter {
@@ -4837,7 +4874,7 @@ var NewEntryPointFileWriter = class extends InPlaceFileWriter {
4837
4874
  }
4838
4875
  };
4839
4876
 
4840
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4877
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/ngcc_options.mjs
4841
4878
  function getSharedSetup(options) {
4842
4879
  const fileSystem = getFileSystem();
4843
4880
  const absBasePath = absoluteFrom(options.basePath);
@@ -4913,7 +4950,7 @@ function getMaxNumberOfWorkers() {
4913
4950
  return numericMaxWorkers;
4914
4951
  }
4915
4952
 
4916
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/utils.mjs
4953
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/tasks/utils.mjs
4917
4954
  var stringifyTask = (task) => `{entryPoint: ${task.entryPoint.name}, formatProperty: ${task.formatProperty}, processDts: ${DtsProcessing[task.processDts]}}`;
4918
4955
  function computeTaskDependencies(tasks, graph) {
4919
4956
  const dependencies = new TaskDependencies();
@@ -4973,7 +5010,7 @@ function sortTasksByPriority(tasks, dependencies) {
4973
5010
  });
4974
5011
  }
4975
5012
 
4976
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/utils.mjs
5013
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/cluster/utils.mjs
4977
5014
  import cluster from "cluster";
4978
5015
  var Deferred = class {
4979
5016
  constructor() {
@@ -5007,7 +5044,7 @@ var sendMessageToWorker = (workerId, msg) => {
5007
5044
  });
5008
5045
  };
5009
5046
 
5010
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/package_json_updater.mjs
5047
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/writing/package_json_updater.mjs
5011
5048
  var PackageJsonUpdate = class {
5012
5049
  constructor(writeChangesImpl) {
5013
5050
  this.writeChangesImpl = writeChangesImpl;
@@ -5021,6 +5058,7 @@ var PackageJsonUpdate = class {
5021
5058
  }
5022
5059
  writeChanges(packageJsonPath, parsedJson) {
5023
5060
  this.ensureNotApplied();
5061
+ this.ensureNotSynthesized(parsedJson);
5024
5062
  this.writeChangesImpl(this.changes, packageJsonPath, parsedJson);
5025
5063
  this.applied = true;
5026
5064
  }
@@ -5029,6 +5067,11 @@ var PackageJsonUpdate = class {
5029
5067
  throw new Error("Trying to apply a `PackageJsonUpdate` that has already been applied.");
5030
5068
  }
5031
5069
  }
5070
+ ensureNotSynthesized(parsedJson) {
5071
+ if (parsedJson == null ? void 0 : parsedJson.synthesized) {
5072
+ throw new Error("Trying to update a non-existent (synthesized) `package.json` file.");
5073
+ }
5074
+ }
5032
5075
  };
5033
5076
  var DirectPackageJsonUpdater = class {
5034
5077
  constructor(fs) {
@@ -5104,6 +5147,8 @@ export {
5104
5147
  isRequireCall,
5105
5148
  isRelativePath,
5106
5149
  resolveFileWithPostfixes,
5150
+ loadJson,
5151
+ loadSecondaryEntryPointInfoForApfV14,
5107
5152
  parseStatementForUmdModule,
5108
5153
  getImportsOfUmdModule,
5109
5154
  SUPPORTED_FORMAT_PROPERTIES,
@@ -5141,4 +5186,4 @@ export {
5141
5186
  * Use of this source code is governed by an MIT-style license that can be
5142
5187
  * found in the LICENSE file at https://angular.io/license
5143
5188
  */
5144
- //# sourceMappingURL=chunk-34QUU6SJ.js.map
5189
+ //# sourceMappingURL=chunk-RV5PLZZB.js.map