@typescript-deploys/pr-build 5.6.0-pr-59644-8 → 5.6.0-pr-59689-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.
@@ -62,6 +62,7 @@
62
62
  "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Deklarace oboru názvů nemůže být v jiném souboru než třída nebo funkce, se kterou se slučuje.",
63
63
  "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Deklarace oboru názvů nemůže být umístěná před třídou nebo funkcí, se kterou se slučuje.",
64
64
  "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Deklarace oboru názvů je povolená pouze na nejvyšší úrovni oboru názvů nebo v modulu.",
65
+ "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Deklarace namespace by se neměla deklarovat pomocí klíčového slova module. Místo toho prosím použijte klíčové slovo namespace.",
65
66
  "A_non_dry_build_would_build_project_0_6357": "Build bez příznaku -dry by vytvořil projekt {0}.",
66
67
  "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Build bez příznaku -dry by odstranil následující soubory: {0}",
67
68
  "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Build bez příznaku -dry by aktualizoval časová razítka pro výstup projektu {0}.",
@@ -17,6 +17,8 @@ and limitations under the License.
17
17
  /// <reference no-default-lib="true"/>
18
18
 
19
19
  /// <reference lib="es2015.symbol" />
20
+ /// <reference lib="es2015.iterable" />
21
+ /// <reference lib="es2018.asynciterable" />
20
22
 
21
23
  interface SymbolConstructor {
22
24
  /**
@@ -183,3 +185,9 @@ interface AsyncDisposableStackConstructor {
183
185
  readonly prototype: AsyncDisposableStack;
184
186
  }
185
187
  declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
188
+
189
+ interface IteratorObject<T, TReturn, TNext> extends Disposable {
190
+ }
191
+
192
+ interface AsyncIteratorObject<T, TReturn, TNext> extends AsyncDisposable {
193
+ }
@@ -62,6 +62,7 @@
62
62
  "A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433": "Deklaracja przestrzeni nazw nie może znajdować się w innym pliku niż klasa lub funkcja, z którą ją scalono.",
63
63
  "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "Deklaracja przestrzeni nazw nie może występować przed klasą lub funkcją, z którą ją scalono.",
64
64
  "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "Deklaracja przestrzeni nazw jest dozwolona tylko na najwyższym poziomie przestrzeni nazw lub modułu.",
65
+ "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "Deklaracja „namespace” nie powinna być deklarowana przy użyciu słowa kluczowego „module”. Zamiast tego należy użyć słowa kluczowego „namespace”.",
65
66
  "A_non_dry_build_would_build_project_0_6357": "Kompilacja inna niż -dry spowodowałaby skompilowanie projektu „{0}”",
66
67
  "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "Kompilacja inna niż -dry spowodowałaby usunięcie następujących plików: {0}",
67
68
  "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "Kompilacja bez opcji dry spowoduje zaktualizowanie sygnatur czasowych dla danych wyjściowych projektu „{0}”",
package/lib/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.6";
21
- var version = `${versionMajorMinor}.0-insiders.20240815`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240819`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -7193,6 +7193,8 @@ var Diagnostics = {
7193
7193
  Building_project_0: diag(6358, 3 /* Message */, "Building_project_0_6358", "Building project '{0}'..."),
7194
7194
  Updating_output_timestamps_of_project_0: diag(6359, 3 /* Message */, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."),
7195
7195
  Project_0_is_up_to_date: diag(6361, 3 /* Message */, "Project_0_is_up_to_date_6361", "Project '{0}' is up to date"),
7196
+ Skipping_build_of_project_0_because_its_dependency_1_has_errors: diag(6362, 3 /* Message */, "Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362", "Skipping build of project '{0}' because its dependency '{1}' has errors"),
7197
+ Project_0_can_t_be_built_because_its_dependency_1_has_errors: diag(6363, 3 /* Message */, "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363", "Project '{0}' can't be built because its dependency '{1}' has errors"),
7196
7198
  Build_one_or_more_projects_and_their_dependencies_if_out_of_date: diag(6364, 3 /* Message */, "Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364", "Build one or more projects and their dependencies, if out of date"),
7197
7199
  Delete_the_outputs_of_all_projects: diag(6365, 3 /* Message */, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects."),
7198
7200
  Show_what_would_be_built_or_deleted_if_specified_with_clean: diag(6367, 3 /* Message */, "Show_what_would_be_built_or_deleted_if_specified_with_clean_6367", "Show what would be built (or deleted, if specified with '--clean')"),
@@ -7204,6 +7206,8 @@ var Diagnostics = {
7204
7206
  Composite_projects_may_not_disable_incremental_compilation: diag(6379, 1 /* Error */, "Composite_projects_may_not_disable_incremental_compilation_6379", "Composite projects may not disable incremental compilation."),
7205
7207
  Specify_file_to_store_incremental_compilation_information: diag(6380, 3 /* Message */, "Specify_file_to_store_incremental_compilation_information_6380", "Specify file to store incremental compilation information"),
7206
7208
  Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: diag(6381, 3 /* Message */, "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381", "Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),
7209
+ Skipping_build_of_project_0_because_its_dependency_1_was_not_built: diag(6382, 3 /* Message */, "Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382", "Skipping build of project '{0}' because its dependency '{1}' was not built"),
7210
+ Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, 3 /* Message */, "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383", "Project '{0}' can't be built because its dependency '{1}' was not built"),
7207
7211
  Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, 3 /* Message */, "Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384", "Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),
7208
7212
  _0_is_deprecated: diag(
7209
7213
  6385,
@@ -7309,6 +7313,7 @@ var Diagnostics = {
7309
7313
  Ensure_that_casing_is_correct_in_imports: diag(6637, 3 /* Message */, "Ensure_that_casing_is_correct_in_imports_6637", "Ensure that casing is correct in imports."),
7310
7314
  Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging: diag(6638, 3 /* Message */, "Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638", "Emit a v8 CPU profile of the compiler run for debugging."),
7311
7315
  Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file: diag(6639, 3 /* Message */, "Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639", "Allow importing helper functions from tslib once per project, instead of including them per-file."),
7316
+ Skip_building_downstream_projects_on_error_in_upstream_project: diag(6640, 3 /* Message */, "Skip_building_downstream_projects_on_error_in_upstream_project_6640", "Skip building downstream projects on error in upstream project."),
7312
7317
  Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation: diag(6641, 3 /* Message */, "Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641", "Specify a list of glob patterns that match files to be included in compilation."),
7313
7318
  Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects: diag(6642, 3 /* Message */, "Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642", "Save .tsbuildinfo files to allow for incremental compilation of projects."),
7314
7319
  Include_sourcemap_files_inside_the_emitted_JavaScript: diag(6643, 3 /* Message */, "Include_sourcemap_files_inside_the_emitted_JavaScript_6643", "Include sourcemap files inside the emitted JavaScript."),
@@ -37061,6 +37066,13 @@ var optionsForBuild = [
37061
37066
  description: Diagnostics.Delete_the_outputs_of_all_projects,
37062
37067
  type: "boolean",
37063
37068
  defaultValueDescription: false
37069
+ },
37070
+ {
37071
+ name: "stopBuildOnErrors",
37072
+ category: Diagnostics.Command_line_Options,
37073
+ description: Diagnostics.Skip_building_downstream_projects_on_error_in_upstream_project,
37074
+ type: "boolean",
37075
+ defaultValueDescription: false
37064
37076
  }
37065
37077
  ];
37066
37078
  var buildOpts = [
@@ -46691,7 +46703,7 @@ function createTypeChecker(host) {
46691
46703
  }
46692
46704
  if (source.exports) {
46693
46705
  if (!target.exports) target.exports = createSymbolTable();
46694
- mergeSymbolTable(target.exports, source.exports, unidirectional);
46706
+ mergeSymbolTable(target.exports, source.exports, unidirectional, target);
46695
46707
  }
46696
46708
  if (!unidirectional) {
46697
46709
  recordMergedSymbol(target, source);
@@ -46771,10 +46783,14 @@ function createTypeChecker(host) {
46771
46783
  mergeSymbolTable(combined, second);
46772
46784
  return combined;
46773
46785
  }
46774
- function mergeSymbolTable(target, source, unidirectional = false) {
46786
+ function mergeSymbolTable(target, source, unidirectional = false, mergedParent) {
46775
46787
  source.forEach((sourceSymbol, id) => {
46776
46788
  const targetSymbol = target.get(id);
46777
- target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol));
46789
+ const merged = targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol);
46790
+ if (mergedParent && targetSymbol) {
46791
+ merged.parent = mergedParent;
46792
+ }
46793
+ target.set(id, merged);
46778
46794
  });
46779
46795
  }
46780
46796
  function mergeModuleAugmentation(moduleName) {
@@ -49617,10 +49633,17 @@ function createTypeChecker(host) {
49617
49633
  if (!location) {
49618
49634
  return range;
49619
49635
  }
49620
- if (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(location))) {
49621
- return setOriginalNode(range, location);
49636
+ let original = range.original;
49637
+ while (original && original !== location) {
49638
+ original = original.original;
49639
+ }
49640
+ if (!original) {
49641
+ setOriginalNode(range, location);
49642
+ }
49643
+ if (context.enclosingFile && context.enclosingFile === getSourceFileOfNode(getOriginalNode(location))) {
49644
+ return setTextRange(range, location);
49622
49645
  }
49623
- return setTextRange(setOriginalNode(range, location), location);
49646
+ return range;
49624
49647
  }
49625
49648
  function expressionOrTypeToTypeNode(context, expr, type, addUndefined) {
49626
49649
  const restoreFlags = saveRestoreFlags(context);
@@ -71347,46 +71370,108 @@ function createTypeChecker(host) {
71347
71370
  function isCircularMappedProperty(symbol) {
71348
71371
  return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0);
71349
71372
  }
71373
+ function isExcludedMappedPropertyName(constraint, propertyNameType) {
71374
+ if (constraint.flags & 16777216 /* Conditional */) {
71375
+ const type = constraint;
71376
+ return !!(getReducedType(getTrueTypeFromConditionalType(type)).flags & 131072 /* Never */) && getActualTypeVariable(getFalseTypeFromConditionalType(type)) === getActualTypeVariable(type.checkType) && isTypeAssignableTo(propertyNameType, type.extendsType);
71377
+ }
71378
+ if (constraint.flags & 2097152 /* Intersection */) {
71379
+ return some(constraint.types, (t) => isExcludedMappedPropertyName(t, propertyNameType));
71380
+ }
71381
+ return false;
71382
+ }
71350
71383
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
71351
71384
  return mapType(
71352
71385
  type,
71353
71386
  (t) => {
71354
- var _a;
71355
- if (isGenericMappedType(t) && getMappedTypeNameTypeKind(t) !== 2 /* Remapping */) {
71356
- const constraint = getConstraintTypeFromMappedType(t);
71357
- const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
71358
- const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
71359
- if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
71360
- return substituteIndexedMappedType(t, propertyNameType);
71361
- }
71362
- } else if (t.flags & 3670016 /* StructuredType */) {
71363
- const prop = getPropertyOfType(t, name);
71364
- if (prop) {
71365
- return isCircularMappedProperty(prop) ? void 0 : removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */));
71366
- }
71367
- if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) {
71368
- const restType = getElementTypeOfSliceOfTupleType(
71369
- t,
71370
- t.target.fixedLength,
71371
- /*endSkipCount*/
71372
- 0,
71373
- /*writing*/
71374
- false,
71375
- /*noReductions*/
71376
- true
71377
- );
71378
- if (restType) {
71379
- return restType;
71387
+ if (t.flags & 2097152 /* Intersection */) {
71388
+ let types;
71389
+ let indexInfoCandidates;
71390
+ let ignoreIndexInfos = false;
71391
+ for (const constituentType of t.types) {
71392
+ if (!(constituentType.flags & 524288 /* Object */)) {
71393
+ continue;
71394
+ }
71395
+ if (isGenericMappedType(constituentType) && getMappedTypeNameTypeKind(constituentType) !== 2 /* Remapping */) {
71396
+ const substitutedType = getIndexedMappedTypeSubstitutedTypeOfContextualType(constituentType, name, nameType);
71397
+ types = appendContextualPropertyTypeConstituent(types, substitutedType);
71398
+ continue;
71399
+ }
71400
+ const propertyType = getTypeOfConcretePropertyOfContextualType(constituentType, name);
71401
+ if (!propertyType) {
71402
+ if (!ignoreIndexInfos) {
71403
+ indexInfoCandidates = append(indexInfoCandidates, constituentType);
71404
+ }
71405
+ continue;
71406
+ }
71407
+ ignoreIndexInfos = true;
71408
+ indexInfoCandidates = void 0;
71409
+ types = appendContextualPropertyTypeConstituent(types, propertyType);
71410
+ }
71411
+ if (indexInfoCandidates) {
71412
+ for (const candidate of indexInfoCandidates) {
71413
+ const indexInfoType = getTypeFromIndexInfosOfContextualType(candidate, name, nameType);
71414
+ types = appendContextualPropertyTypeConstituent(types, indexInfoType);
71380
71415
  }
71381
71416
  }
71382
- return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type;
71417
+ if (!types) {
71418
+ return;
71419
+ }
71420
+ if (types.length === 1) {
71421
+ return types[0];
71422
+ }
71423
+ return getIntersectionType(types);
71383
71424
  }
71384
- return void 0;
71425
+ if (!(t.flags & 524288 /* Object */)) {
71426
+ return;
71427
+ }
71428
+ return isGenericMappedType(t) && getMappedTypeNameTypeKind(t) !== 2 /* Remapping */ ? getIndexedMappedTypeSubstitutedTypeOfContextualType(t, name, nameType) : getTypeOfConcretePropertyOfContextualType(t, name) ?? getTypeFromIndexInfosOfContextualType(t, name, nameType);
71385
71429
  },
71386
71430
  /*noReductions*/
71387
71431
  true
71388
71432
  );
71389
71433
  }
71434
+ function appendContextualPropertyTypeConstituent(types, type) {
71435
+ return type ? append(types, type.flags & 1 /* Any */ ? unknownType : type) : types;
71436
+ }
71437
+ function getIndexedMappedTypeSubstitutedTypeOfContextualType(type, name, nameType) {
71438
+ const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
71439
+ const constraint = getConstraintTypeFromMappedType(type);
71440
+ if (type.nameType && isExcludedMappedPropertyName(type.nameType, propertyNameType) || isExcludedMappedPropertyName(constraint, propertyNameType)) {
71441
+ return;
71442
+ }
71443
+ const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
71444
+ if (!isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
71445
+ return;
71446
+ }
71447
+ return substituteIndexedMappedType(type, propertyNameType);
71448
+ }
71449
+ function getTypeOfConcretePropertyOfContextualType(type, name) {
71450
+ const prop = getPropertyOfType(type, name);
71451
+ if (!prop || isCircularMappedProperty(prop)) {
71452
+ return;
71453
+ }
71454
+ return removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */));
71455
+ }
71456
+ function getTypeFromIndexInfosOfContextualType(type, name, nameType) {
71457
+ var _a;
71458
+ if (isTupleType(type) && isNumericLiteralName(name) && +name >= 0) {
71459
+ const restType = getElementTypeOfSliceOfTupleType(
71460
+ type,
71461
+ type.target.fixedLength,
71462
+ /*endSkipCount*/
71463
+ 0,
71464
+ /*writing*/
71465
+ false,
71466
+ /*noReductions*/
71467
+ true
71468
+ );
71469
+ if (restType) {
71470
+ return restType;
71471
+ }
71472
+ }
71473
+ return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(type), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type;
71474
+ }
71390
71475
  function getContextualTypeForObjectLiteralMethod(node, contextFlags) {
71391
71476
  Debug.assert(isObjectLiteralMethod(node));
71392
71477
  if (node.flags & 67108864 /* InWithStatement */) {
@@ -128185,7 +128270,7 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) {
128185
128270
  }
128186
128271
  continue;
128187
128272
  }
128188
- if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 14 /* UpToDateWithInputFileText */) {
128273
+ if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 15 /* UpToDateWithInputFileText */) {
128189
128274
  reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
128190
128275
  return {
128191
128276
  kind: 1 /* UpdateOutputFileStamps */,
@@ -128197,7 +128282,21 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) {
128197
128282
  };
128198
128283
  }
128199
128284
  }
128200
- if (status.type === 15 /* ContainerOnly */) {
128285
+ if (status.type === 12 /* UpstreamBlocked */) {
128286
+ verboseReportProjectStatus(state, project, status);
128287
+ reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
128288
+ projectPendingBuild.delete(projectPath);
128289
+ if (options.verbose) {
128290
+ reportStatus(
128291
+ state,
128292
+ status.upstreamProjectBlocked ? Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built : Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,
128293
+ project,
128294
+ status.upstreamProjectName
128295
+ );
128296
+ }
128297
+ continue;
128298
+ }
128299
+ if (status.type === 16 /* ContainerOnly */) {
128201
128300
  verboseReportProjectStatus(state, project, status);
128202
128301
  reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
128203
128302
  projectPendingBuild.delete(projectPath);
@@ -128339,25 +128438,32 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
128339
128438
  var _a, _b, _c, _d, _e;
128340
128439
  if (!project.fileNames.length && !canJsonReportNoInputFiles(project.raw)) {
128341
128440
  return {
128342
- type: 15 /* ContainerOnly */
128441
+ type: 16 /* ContainerOnly */
128343
128442
  };
128344
128443
  }
128345
128444
  let referenceStatuses;
128346
128445
  const force = !!state.options.force;
128347
128446
  if (project.projectReferences) {
128348
- state.projectStatus.set(resolvedPath, { type: 12 /* ComputingUpstream */ });
128447
+ state.projectStatus.set(resolvedPath, { type: 13 /* ComputingUpstream */ });
128349
128448
  for (const ref of project.projectReferences) {
128350
128449
  const resolvedRef = resolveProjectReferencePath(ref);
128351
128450
  const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef);
128352
128451
  const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath);
128353
128452
  const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath);
128354
- if (refStatus.type === 12 /* ComputingUpstream */ || refStatus.type === 15 /* ContainerOnly */) {
128453
+ if (refStatus.type === 13 /* ComputingUpstream */ || refStatus.type === 16 /* ContainerOnly */) {
128355
128454
  continue;
128356
128455
  }
128456
+ if (state.options.stopBuildOnErrors && (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 12 /* UpstreamBlocked */)) {
128457
+ return {
128458
+ type: 12 /* UpstreamBlocked */,
128459
+ upstreamProjectName: ref.path,
128460
+ upstreamProjectBlocked: refStatus.type === 12 /* UpstreamBlocked */
128461
+ };
128462
+ }
128357
128463
  if (!force) (referenceStatuses || (referenceStatuses = [])).push({ ref, refStatus, resolvedRefPath, resolvedConfig });
128358
128464
  }
128359
128465
  }
128360
- if (force) return { type: 16 /* ForceBuild */ };
128466
+ if (force) return { type: 17 /* ForceBuild */ };
128361
128467
  const { host } = state;
128362
128468
  const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options);
128363
128469
  const isIncremental = isIncrementalCompilation(project.options);
@@ -128386,7 +128492,7 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
128386
128492
  const incrementalBuildInfo = isIncremental && isIncrementalBuildInfo(buildInfo) ? buildInfo : void 0;
128387
128493
  if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !== version) {
128388
128494
  return {
128389
- type: 13 /* TsVersionOutputOfDate */,
128495
+ type: 14 /* TsVersionOutputOfDate */,
128390
128496
  version: buildInfo.version
128391
128497
  };
128392
128498
  }
@@ -128552,7 +128658,7 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
128552
128658
  );
128553
128659
  if (dependentPackageFileStatus) return dependentPackageFileStatus;
128554
128660
  return {
128555
- type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 14 /* UpToDateWithInputFileText */ : 1 /* UpToDate */,
128661
+ type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 15 /* UpToDateWithInputFileText */ : 1 /* UpToDate */,
128556
128662
  newestInputFileTime,
128557
128663
  newestInputFileName,
128558
128664
  oldestOutputFileName
@@ -128635,6 +128741,7 @@ function updateOutputTimestamps(state, proj, resolvedPath) {
128635
128741
  });
128636
128742
  }
128637
128743
  function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) {
128744
+ if (state.options.stopBuildOnErrors && buildResult & 4 /* AnyErrors */) return;
128638
128745
  if (!config.options.composite) return;
128639
128746
  for (let index = projectIndex + 1; index < buildOrder.length; index++) {
128640
128747
  const nextProject = buildOrder[index];
@@ -128653,7 +128760,7 @@ function queueReferencingProjects(state, project, projectPath, projectIndex, con
128653
128760
  status.type = 2 /* UpToDateWithUpstreamTypes */;
128654
128761
  break;
128655
128762
  }
128656
- case 14 /* UpToDateWithInputFileText */:
128763
+ case 15 /* UpToDateWithInputFileText */:
128657
128764
  case 2 /* UpToDateWithUpstreamTypes */:
128658
128765
  if (!(buildResult & 2 /* DeclarationOutputUnchanged */)) {
128659
128766
  state.projectStatus.set(nextProjectPath, {
@@ -128663,6 +128770,11 @@ function queueReferencingProjects(state, project, projectPath, projectIndex, con
128663
128770
  });
128664
128771
  }
128665
128772
  break;
128773
+ case 12 /* UpstreamBlocked */:
128774
+ if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) {
128775
+ clearProjectStatus(state, nextProjectPath);
128776
+ }
128777
+ break;
128666
128778
  }
128667
128779
  }
128668
128780
  addProjToQueue(state, nextProjectPath, 0 /* Update */);
@@ -129123,7 +129235,7 @@ function reportUpToDateStatus(state, configFileName, status) {
129123
129235
  Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,
129124
129236
  relName(state, configFileName)
129125
129237
  );
129126
- case 14 /* UpToDateWithInputFileText */:
129238
+ case 15 /* UpToDateWithInputFileText */:
129127
129239
  return reportStatus(
129128
129240
  state,
129129
129241
  Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,
@@ -129136,6 +129248,13 @@ function reportUpToDateStatus(state, configFileName, status) {
129136
129248
  relName(state, configFileName),
129137
129249
  relName(state, status.upstreamProjectName)
129138
129250
  );
129251
+ case 12 /* UpstreamBlocked */:
129252
+ return reportStatus(
129253
+ state,
129254
+ status.upstreamProjectBlocked ? Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,
129255
+ relName(state, configFileName),
129256
+ relName(state, status.upstreamProjectName)
129257
+ );
129139
129258
  case 0 /* Unbuildable */:
129140
129259
  return reportStatus(
129141
129260
  state,
@@ -129143,7 +129262,7 @@ function reportUpToDateStatus(state, configFileName, status) {
129143
129262
  relName(state, configFileName),
129144
129263
  status.reason
129145
129264
  );
129146
- case 13 /* TsVersionOutputOfDate */:
129265
+ case 14 /* TsVersionOutputOfDate */:
129147
129266
  return reportStatus(
129148
129267
  state,
129149
129268
  Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,
@@ -129151,14 +129270,14 @@ function reportUpToDateStatus(state, configFileName, status) {
129151
129270
  status.version,
129152
129271
  version
129153
129272
  );
129154
- case 16 /* ForceBuild */:
129273
+ case 17 /* ForceBuild */:
129155
129274
  return reportStatus(
129156
129275
  state,
129157
129276
  Diagnostics.Project_0_is_being_forcibly_rebuilt,
129158
129277
  relName(state, configFileName)
129159
129278
  );
129160
- case 15 /* ContainerOnly */:
129161
- case 12 /* ComputingUpstream */:
129279
+ case 16 /* ContainerOnly */:
129280
+ case 13 /* ComputingUpstream */:
129162
129281
  break;
129163
129282
  default:
129164
129283
  assertType(status);