@typescript-deploys/pr-build 5.6.0-pr-59644-8 → 5.6.0-pr-52095-71

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);
@@ -9802,6 +9802,7 @@ declare namespace ts {
9802
9802
  dry?: boolean;
9803
9803
  force?: boolean;
9804
9804
  verbose?: boolean;
9805
+ stopBuildOnErrors?: boolean;
9805
9806
  incremental?: boolean;
9806
9807
  assumeChangesOnlyAffectDirectDependencies?: boolean;
9807
9808
  declaration?: boolean;
package/lib/typescript.js CHANGED
@@ -541,6 +541,7 @@ __export(typescript_exports, {
541
541
  extensionsNotSupportingExtensionlessResolution: () => extensionsNotSupportingExtensionlessResolution,
542
542
  externalHelpersModuleNameText: () => externalHelpersModuleNameText,
543
543
  factory: () => factory,
544
+ fileContainsPackageImport: () => fileContainsPackageImport,
544
545
  fileExtensionIs: () => fileExtensionIs,
545
546
  fileExtensionIsOneOf: () => fileExtensionIsOneOf,
546
547
  fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,
@@ -2262,7 +2263,7 @@ module.exports = __toCommonJS(typescript_exports);
2262
2263
 
2263
2264
  // src/compiler/corePublic.ts
2264
2265
  var versionMajorMinor = "5.6";
2265
- var version = `${versionMajorMinor}.0-insiders.20240815`;
2266
+ var version = `${versionMajorMinor}.0-insiders.20240819`;
2266
2267
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2267
2268
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2268
2269
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -10590,6 +10591,8 @@ var Diagnostics = {
10590
10591
  Building_project_0: diag(6358, 3 /* Message */, "Building_project_0_6358", "Building project '{0}'..."),
10591
10592
  Updating_output_timestamps_of_project_0: diag(6359, 3 /* Message */, "Updating_output_timestamps_of_project_0_6359", "Updating output timestamps of project '{0}'..."),
10592
10593
  Project_0_is_up_to_date: diag(6361, 3 /* Message */, "Project_0_is_up_to_date_6361", "Project '{0}' is up to date"),
10594
+ 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"),
10595
+ 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"),
10593
10596
  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"),
10594
10597
  Delete_the_outputs_of_all_projects: diag(6365, 3 /* Message */, "Delete_the_outputs_of_all_projects_6365", "Delete the outputs of all projects."),
10595
10598
  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')"),
@@ -10601,6 +10604,8 @@ var Diagnostics = {
10601
10604
  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."),
10602
10605
  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"),
10603
10606
  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}'"),
10607
+ 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"),
10608
+ 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"),
10604
10609
  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."),
10605
10610
  _0_is_deprecated: diag(
10606
10611
  6385,
@@ -10706,6 +10711,7 @@ var Diagnostics = {
10706
10711
  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."),
10707
10712
  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."),
10708
10713
  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."),
10714
+ 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."),
10709
10715
  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."),
10710
10716
  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."),
10711
10717
  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."),
@@ -41331,6 +41337,13 @@ var optionsForBuild = [
41331
41337
  description: Diagnostics.Delete_the_outputs_of_all_projects,
41332
41338
  type: "boolean",
41333
41339
  defaultValueDescription: false
41340
+ },
41341
+ {
41342
+ name: "stopBuildOnErrors",
41343
+ category: Diagnostics.Command_line_Options,
41344
+ description: Diagnostics.Skip_building_downstream_projects_on_error_in_upstream_project,
41345
+ type: "boolean",
41346
+ defaultValueDescription: false
41334
41347
  }
41335
41348
  ];
41336
41349
  var buildOpts = [
@@ -51310,7 +51323,7 @@ function createTypeChecker(host) {
51310
51323
  }
51311
51324
  if (source.exports) {
51312
51325
  if (!target.exports) target.exports = createSymbolTable();
51313
- mergeSymbolTable(target.exports, source.exports, unidirectional);
51326
+ mergeSymbolTable(target.exports, source.exports, unidirectional, target);
51314
51327
  }
51315
51328
  if (!unidirectional) {
51316
51329
  recordMergedSymbol(target, source);
@@ -51390,10 +51403,14 @@ function createTypeChecker(host) {
51390
51403
  mergeSymbolTable(combined, second);
51391
51404
  return combined;
51392
51405
  }
51393
- function mergeSymbolTable(target, source, unidirectional = false) {
51406
+ function mergeSymbolTable(target, source, unidirectional = false, mergedParent) {
51394
51407
  source.forEach((sourceSymbol, id) => {
51395
51408
  const targetSymbol = target.get(id);
51396
- target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol));
51409
+ const merged = targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : getMergedSymbol(sourceSymbol);
51410
+ if (mergedParent && targetSymbol) {
51411
+ merged.parent = mergedParent;
51412
+ }
51413
+ target.set(id, merged);
51397
51414
  });
51398
51415
  }
51399
51416
  function mergeModuleAugmentation(moduleName) {
@@ -54236,10 +54253,17 @@ function createTypeChecker(host) {
54236
54253
  if (!location) {
54237
54254
  return range;
54238
54255
  }
54239
- if (!context.enclosingFile || context.enclosingFile !== getSourceFileOfNode(getOriginalNode(location))) {
54240
- return setOriginalNode(range, location);
54256
+ let original = range.original;
54257
+ while (original && original !== location) {
54258
+ original = original.original;
54241
54259
  }
54242
- return setTextRange(setOriginalNode(range, location), location);
54260
+ if (!original) {
54261
+ setOriginalNode(range, location);
54262
+ }
54263
+ if (context.enclosingFile && context.enclosingFile === getSourceFileOfNode(getOriginalNode(location))) {
54264
+ return setTextRange(range, location);
54265
+ }
54266
+ return range;
54243
54267
  }
54244
54268
  function expressionOrTypeToTypeNode(context, expr, type, addUndefined) {
54245
54269
  const restoreFlags = saveRestoreFlags(context);
@@ -75966,46 +75990,108 @@ function createTypeChecker(host) {
75966
75990
  function isCircularMappedProperty(symbol) {
75967
75991
  return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0);
75968
75992
  }
75993
+ function isExcludedMappedPropertyName(constraint, propertyNameType) {
75994
+ if (constraint.flags & 16777216 /* Conditional */) {
75995
+ const type = constraint;
75996
+ return !!(getReducedType(getTrueTypeFromConditionalType(type)).flags & 131072 /* Never */) && getActualTypeVariable(getFalseTypeFromConditionalType(type)) === getActualTypeVariable(type.checkType) && isTypeAssignableTo(propertyNameType, type.extendsType);
75997
+ }
75998
+ if (constraint.flags & 2097152 /* Intersection */) {
75999
+ return some(constraint.types, (t) => isExcludedMappedPropertyName(t, propertyNameType));
76000
+ }
76001
+ return false;
76002
+ }
75969
76003
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
75970
76004
  return mapType(
75971
76005
  type,
75972
76006
  (t) => {
75973
- var _a;
75974
- if (isGenericMappedType(t) && getMappedTypeNameTypeKind(t) !== 2 /* Remapping */) {
75975
- const constraint = getConstraintTypeFromMappedType(t);
75976
- const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
75977
- const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
75978
- if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
75979
- return substituteIndexedMappedType(t, propertyNameType);
75980
- }
75981
- } else if (t.flags & 3670016 /* StructuredType */) {
75982
- const prop = getPropertyOfType(t, name);
75983
- if (prop) {
75984
- return isCircularMappedProperty(prop) ? void 0 : removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */));
76007
+ if (t.flags & 2097152 /* Intersection */) {
76008
+ let types;
76009
+ let indexInfoCandidates;
76010
+ let ignoreIndexInfos = false;
76011
+ for (const constituentType of t.types) {
76012
+ if (!(constituentType.flags & 524288 /* Object */)) {
76013
+ continue;
76014
+ }
76015
+ if (isGenericMappedType(constituentType) && getMappedTypeNameTypeKind(constituentType) !== 2 /* Remapping */) {
76016
+ const substitutedType = getIndexedMappedTypeSubstitutedTypeOfContextualType(constituentType, name, nameType);
76017
+ types = appendContextualPropertyTypeConstituent(types, substitutedType);
76018
+ continue;
76019
+ }
76020
+ const propertyType = getTypeOfConcretePropertyOfContextualType(constituentType, name);
76021
+ if (!propertyType) {
76022
+ if (!ignoreIndexInfos) {
76023
+ indexInfoCandidates = append(indexInfoCandidates, constituentType);
76024
+ }
76025
+ continue;
76026
+ }
76027
+ ignoreIndexInfos = true;
76028
+ indexInfoCandidates = void 0;
76029
+ types = appendContextualPropertyTypeConstituent(types, propertyType);
75985
76030
  }
75986
- if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) {
75987
- const restType = getElementTypeOfSliceOfTupleType(
75988
- t,
75989
- t.target.fixedLength,
75990
- /*endSkipCount*/
75991
- 0,
75992
- /*writing*/
75993
- false,
75994
- /*noReductions*/
75995
- true
75996
- );
75997
- if (restType) {
75998
- return restType;
76031
+ if (indexInfoCandidates) {
76032
+ for (const candidate of indexInfoCandidates) {
76033
+ const indexInfoType = getTypeFromIndexInfosOfContextualType(candidate, name, nameType);
76034
+ types = appendContextualPropertyTypeConstituent(types, indexInfoType);
75999
76035
  }
76000
76036
  }
76001
- return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type;
76037
+ if (!types) {
76038
+ return;
76039
+ }
76040
+ if (types.length === 1) {
76041
+ return types[0];
76042
+ }
76043
+ return getIntersectionType(types);
76002
76044
  }
76003
- return void 0;
76045
+ if (!(t.flags & 524288 /* Object */)) {
76046
+ return;
76047
+ }
76048
+ return isGenericMappedType(t) && getMappedTypeNameTypeKind(t) !== 2 /* Remapping */ ? getIndexedMappedTypeSubstitutedTypeOfContextualType(t, name, nameType) : getTypeOfConcretePropertyOfContextualType(t, name) ?? getTypeFromIndexInfosOfContextualType(t, name, nameType);
76004
76049
  },
76005
76050
  /*noReductions*/
76006
76051
  true
76007
76052
  );
76008
76053
  }
76054
+ function appendContextualPropertyTypeConstituent(types, type) {
76055
+ return type ? append(types, type.flags & 1 /* Any */ ? unknownType : type) : types;
76056
+ }
76057
+ function getIndexedMappedTypeSubstitutedTypeOfContextualType(type, name, nameType) {
76058
+ const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
76059
+ const constraint = getConstraintTypeFromMappedType(type);
76060
+ if (type.nameType && isExcludedMappedPropertyName(type.nameType, propertyNameType) || isExcludedMappedPropertyName(constraint, propertyNameType)) {
76061
+ return;
76062
+ }
76063
+ const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
76064
+ if (!isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
76065
+ return;
76066
+ }
76067
+ return substituteIndexedMappedType(type, propertyNameType);
76068
+ }
76069
+ function getTypeOfConcretePropertyOfContextualType(type, name) {
76070
+ const prop = getPropertyOfType(type, name);
76071
+ if (!prop || isCircularMappedProperty(prop)) {
76072
+ return;
76073
+ }
76074
+ return removeMissingType(getTypeOfSymbol(prop), !!(prop.flags & 16777216 /* Optional */));
76075
+ }
76076
+ function getTypeFromIndexInfosOfContextualType(type, name, nameType) {
76077
+ var _a;
76078
+ if (isTupleType(type) && isNumericLiteralName(name) && +name >= 0) {
76079
+ const restType = getElementTypeOfSliceOfTupleType(
76080
+ type,
76081
+ type.target.fixedLength,
76082
+ /*endSkipCount*/
76083
+ 0,
76084
+ /*writing*/
76085
+ false,
76086
+ /*noReductions*/
76087
+ true
76088
+ );
76089
+ if (restType) {
76090
+ return restType;
76091
+ }
76092
+ }
76093
+ return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(type), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type;
76094
+ }
76009
76095
  function getContextualTypeForObjectLiteralMethod(node, contextFlags) {
76010
76096
  Debug.assert(isObjectLiteralMethod(node));
76011
76097
  if (node.flags & 67108864 /* InWithStatement */) {
@@ -132431,11 +132517,12 @@ var UpToDateStatusType = /* @__PURE__ */ ((UpToDateStatusType2) => {
132431
132517
  UpToDateStatusType2[UpToDateStatusType2["OutOfDateOptions"] = 9] = "OutOfDateOptions";
132432
132518
  UpToDateStatusType2[UpToDateStatusType2["OutOfDateRoots"] = 10] = "OutOfDateRoots";
132433
132519
  UpToDateStatusType2[UpToDateStatusType2["UpstreamOutOfDate"] = 11] = "UpstreamOutOfDate";
132434
- UpToDateStatusType2[UpToDateStatusType2["ComputingUpstream"] = 12] = "ComputingUpstream";
132435
- UpToDateStatusType2[UpToDateStatusType2["TsVersionOutputOfDate"] = 13] = "TsVersionOutputOfDate";
132436
- UpToDateStatusType2[UpToDateStatusType2["UpToDateWithInputFileText"] = 14] = "UpToDateWithInputFileText";
132437
- UpToDateStatusType2[UpToDateStatusType2["ContainerOnly"] = 15] = "ContainerOnly";
132438
- UpToDateStatusType2[UpToDateStatusType2["ForceBuild"] = 16] = "ForceBuild";
132520
+ UpToDateStatusType2[UpToDateStatusType2["UpstreamBlocked"] = 12] = "UpstreamBlocked";
132521
+ UpToDateStatusType2[UpToDateStatusType2["ComputingUpstream"] = 13] = "ComputingUpstream";
132522
+ UpToDateStatusType2[UpToDateStatusType2["TsVersionOutputOfDate"] = 14] = "TsVersionOutputOfDate";
132523
+ UpToDateStatusType2[UpToDateStatusType2["UpToDateWithInputFileText"] = 15] = "UpToDateWithInputFileText";
132524
+ UpToDateStatusType2[UpToDateStatusType2["ContainerOnly"] = 16] = "ContainerOnly";
132525
+ UpToDateStatusType2[UpToDateStatusType2["ForceBuild"] = 17] = "ForceBuild";
132439
132526
  return UpToDateStatusType2;
132440
132527
  })(UpToDateStatusType || {});
132441
132528
  function resolveConfigFileProjectName(project) {
@@ -133154,7 +133241,7 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) {
133154
133241
  }
133155
133242
  continue;
133156
133243
  }
133157
- if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 14 /* UpToDateWithInputFileText */) {
133244
+ if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 15 /* UpToDateWithInputFileText */) {
133158
133245
  reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
133159
133246
  return {
133160
133247
  kind: 1 /* UpdateOutputFileStamps */,
@@ -133166,7 +133253,21 @@ function getNextInvalidatedProjectCreateInfo(state, buildOrder, reportQueue) {
133166
133253
  };
133167
133254
  }
133168
133255
  }
133169
- if (status.type === 15 /* ContainerOnly */) {
133256
+ if (status.type === 12 /* UpstreamBlocked */) {
133257
+ verboseReportProjectStatus(state, project, status);
133258
+ reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
133259
+ projectPendingBuild.delete(projectPath);
133260
+ if (options.verbose) {
133261
+ reportStatus(
133262
+ state,
133263
+ 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,
133264
+ project,
133265
+ status.upstreamProjectName
133266
+ );
133267
+ }
133268
+ continue;
133269
+ }
133270
+ if (status.type === 16 /* ContainerOnly */) {
133170
133271
  verboseReportProjectStatus(state, project, status);
133171
133272
  reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
133172
133273
  projectPendingBuild.delete(projectPath);
@@ -133308,25 +133409,32 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
133308
133409
  var _a, _b, _c, _d, _e;
133309
133410
  if (!project.fileNames.length && !canJsonReportNoInputFiles(project.raw)) {
133310
133411
  return {
133311
- type: 15 /* ContainerOnly */
133412
+ type: 16 /* ContainerOnly */
133312
133413
  };
133313
133414
  }
133314
133415
  let referenceStatuses;
133315
133416
  const force = !!state.options.force;
133316
133417
  if (project.projectReferences) {
133317
- state.projectStatus.set(resolvedPath, { type: 12 /* ComputingUpstream */ });
133418
+ state.projectStatus.set(resolvedPath, { type: 13 /* ComputingUpstream */ });
133318
133419
  for (const ref of project.projectReferences) {
133319
133420
  const resolvedRef = resolveProjectReferencePath(ref);
133320
133421
  const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef);
133321
133422
  const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath);
133322
133423
  const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath);
133323
- if (refStatus.type === 12 /* ComputingUpstream */ || refStatus.type === 15 /* ContainerOnly */) {
133424
+ if (refStatus.type === 13 /* ComputingUpstream */ || refStatus.type === 16 /* ContainerOnly */) {
133324
133425
  continue;
133325
133426
  }
133427
+ if (state.options.stopBuildOnErrors && (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 12 /* UpstreamBlocked */)) {
133428
+ return {
133429
+ type: 12 /* UpstreamBlocked */,
133430
+ upstreamProjectName: ref.path,
133431
+ upstreamProjectBlocked: refStatus.type === 12 /* UpstreamBlocked */
133432
+ };
133433
+ }
133326
133434
  if (!force) (referenceStatuses || (referenceStatuses = [])).push({ ref, refStatus, resolvedRefPath, resolvedConfig });
133327
133435
  }
133328
133436
  }
133329
- if (force) return { type: 16 /* ForceBuild */ };
133437
+ if (force) return { type: 17 /* ForceBuild */ };
133330
133438
  const { host } = state;
133331
133439
  const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options);
133332
133440
  const isIncremental = isIncrementalCompilation(project.options);
@@ -133355,7 +133463,7 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
133355
133463
  const incrementalBuildInfo = isIncremental && isIncrementalBuildInfo(buildInfo) ? buildInfo : void 0;
133356
133464
  if ((incrementalBuildInfo || !isIncremental) && buildInfo.version !== version) {
133357
133465
  return {
133358
- type: 13 /* TsVersionOutputOfDate */,
133466
+ type: 14 /* TsVersionOutputOfDate */,
133359
133467
  version: buildInfo.version
133360
133468
  };
133361
133469
  }
@@ -133521,7 +133629,7 @@ function getUpToDateStatusWorker(state, project, resolvedPath) {
133521
133629
  );
133522
133630
  if (dependentPackageFileStatus) return dependentPackageFileStatus;
133523
133631
  return {
133524
- type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 14 /* UpToDateWithInputFileText */ : 1 /* UpToDate */,
133632
+ type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 15 /* UpToDateWithInputFileText */ : 1 /* UpToDate */,
133525
133633
  newestInputFileTime,
133526
133634
  newestInputFileName,
133527
133635
  oldestOutputFileName
@@ -133604,6 +133712,7 @@ function updateOutputTimestamps(state, proj, resolvedPath) {
133604
133712
  });
133605
133713
  }
133606
133714
  function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) {
133715
+ if (state.options.stopBuildOnErrors && buildResult & 4 /* AnyErrors */) return;
133607
133716
  if (!config.options.composite) return;
133608
133717
  for (let index = projectIndex + 1; index < buildOrder.length; index++) {
133609
133718
  const nextProject = buildOrder[index];
@@ -133622,7 +133731,7 @@ function queueReferencingProjects(state, project, projectPath, projectIndex, con
133622
133731
  status.type = 2 /* UpToDateWithUpstreamTypes */;
133623
133732
  break;
133624
133733
  }
133625
- case 14 /* UpToDateWithInputFileText */:
133734
+ case 15 /* UpToDateWithInputFileText */:
133626
133735
  case 2 /* UpToDateWithUpstreamTypes */:
133627
133736
  if (!(buildResult & 2 /* DeclarationOutputUnchanged */)) {
133628
133737
  state.projectStatus.set(nextProjectPath, {
@@ -133632,6 +133741,11 @@ function queueReferencingProjects(state, project, projectPath, projectIndex, con
133632
133741
  });
133633
133742
  }
133634
133743
  break;
133744
+ case 12 /* UpstreamBlocked */:
133745
+ if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) {
133746
+ clearProjectStatus(state, nextProjectPath);
133747
+ }
133748
+ break;
133635
133749
  }
133636
133750
  }
133637
133751
  addProjToQueue(state, nextProjectPath, 0 /* Update */);
@@ -134092,7 +134206,7 @@ function reportUpToDateStatus(state, configFileName, status) {
134092
134206
  Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,
134093
134207
  relName(state, configFileName)
134094
134208
  );
134095
- case 14 /* UpToDateWithInputFileText */:
134209
+ case 15 /* UpToDateWithInputFileText */:
134096
134210
  return reportStatus(
134097
134211
  state,
134098
134212
  Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,
@@ -134105,6 +134219,13 @@ function reportUpToDateStatus(state, configFileName, status) {
134105
134219
  relName(state, configFileName),
134106
134220
  relName(state, status.upstreamProjectName)
134107
134221
  );
134222
+ case 12 /* UpstreamBlocked */:
134223
+ return reportStatus(
134224
+ state,
134225
+ 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,
134226
+ relName(state, configFileName),
134227
+ relName(state, status.upstreamProjectName)
134228
+ );
134108
134229
  case 0 /* Unbuildable */:
134109
134230
  return reportStatus(
134110
134231
  state,
@@ -134112,7 +134233,7 @@ function reportUpToDateStatus(state, configFileName, status) {
134112
134233
  relName(state, configFileName),
134113
134234
  status.reason
134114
134235
  );
134115
- case 13 /* TsVersionOutputOfDate */:
134236
+ case 14 /* TsVersionOutputOfDate */:
134116
134237
  return reportStatus(
134117
134238
  state,
134118
134239
  Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,
@@ -134120,14 +134241,14 @@ function reportUpToDateStatus(state, configFileName, status) {
134120
134241
  status.version,
134121
134242
  version
134122
134243
  );
134123
- case 16 /* ForceBuild */:
134244
+ case 17 /* ForceBuild */:
134124
134245
  return reportStatus(
134125
134246
  state,
134126
134247
  Diagnostics.Project_0_is_being_forcibly_rebuilt,
134127
134248
  relName(state, configFileName)
134128
134249
  );
134129
- case 15 /* ContainerOnly */:
134130
- case 12 /* ComputingUpstream */:
134250
+ case 16 /* ContainerOnly */:
134251
+ case 13 /* ComputingUpstream */:
134131
134252
  break;
134132
134253
  default:
134133
134254
  assertType(status);
@@ -138710,7 +138831,7 @@ function createPackageJsonImportFilter(fromFile, preferences, host) {
138710
138831
  let sourceFileCache;
138711
138832
  return {
138712
138833
  allowsImportingAmbientModule,
138713
- allowsImportingSourceFile,
138834
+ getSourceFileInfo,
138714
138835
  allowsImportingSpecifier
138715
138836
  };
138716
138837
  function moduleSpecifierIsCoveredByPackageJson(specifier) {
@@ -138749,9 +138870,9 @@ function createPackageJsonImportFilter(fromFile, preferences, host) {
138749
138870
  ambientModuleCache.set(moduleSymbol, result);
138750
138871
  return result;
138751
138872
  }
138752
- function allowsImportingSourceFile(sourceFile, moduleSpecifierResolutionHost) {
138873
+ function getSourceFileInfo(sourceFile, moduleSpecifierResolutionHost) {
138753
138874
  if (!packageJsons.length) {
138754
- return true;
138875
+ return { importable: true, packageName: void 0 };
138755
138876
  }
138756
138877
  if (!sourceFileCache) {
138757
138878
  sourceFileCache = /* @__PURE__ */ new Map();
@@ -138761,12 +138882,14 @@ function createPackageJsonImportFilter(fromFile, preferences, host) {
138761
138882
  return cached;
138762
138883
  }
138763
138884
  }
138764
- const moduleSpecifier = getNodeModulesPackageNameFromFileName(sourceFile.fileName, moduleSpecifierResolutionHost);
138765
- if (!moduleSpecifier) {
138766
- sourceFileCache.set(sourceFile, true);
138767
- return true;
138885
+ const packageName = getNodeModulesPackageNameFromFileName(sourceFile.fileName, moduleSpecifierResolutionHost);
138886
+ if (!packageName) {
138887
+ const result2 = { importable: true, packageName };
138888
+ sourceFileCache.set(sourceFile, result2);
138889
+ return result2;
138768
138890
  }
138769
- const result = moduleSpecifierIsCoveredByPackageJson(moduleSpecifier);
138891
+ const importable = moduleSpecifierIsCoveredByPackageJson(packageName);
138892
+ const result = { importable, packageName };
138770
138893
  sourceFileCache.set(sourceFile, result);
138771
138894
  return result;
138772
138895
  }
@@ -139312,7 +139435,7 @@ function isImportableFile(program, from, to, preferences, packageJsonFilter, mod
139312
139435
  if (from === to) return false;
139313
139436
  const cachedResult = moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.get(from.path, to.path, preferences, {});
139314
139437
  if ((cachedResult == null ? void 0 : cachedResult.isBlockedByPackageJsonDependencies) !== void 0) {
139315
- return !cachedResult.isBlockedByPackageJsonDependencies;
139438
+ return !cachedResult.isBlockedByPackageJsonDependencies || !!cachedResult.packageName && fileContainsPackageImport(from, cachedResult.packageName);
139316
139439
  }
139317
139440
  const getCanonicalFileName = hostGetCanonicalFileName(moduleSpecifierResolutionHost);
139318
139441
  const globalTypingsCache = (_a = moduleSpecifierResolutionHost.getGlobalTypingsCacheLocation) == null ? void 0 : _a.call(moduleSpecifierResolutionHost);
@@ -139328,12 +139451,15 @@ function isImportableFile(program, from, to, preferences, packageJsonFilter, mod
139328
139451
  }
139329
139452
  );
139330
139453
  if (packageJsonFilter) {
139331
- const isAutoImportable = hasImportablePath && packageJsonFilter.allowsImportingSourceFile(to, moduleSpecifierResolutionHost);
139332
- moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.setBlockedByPackageJsonDependencies(from.path, to.path, preferences, {}, !isAutoImportable);
139333
- return isAutoImportable;
139454
+ const importInfo = hasImportablePath ? packageJsonFilter.getSourceFileInfo(to, moduleSpecifierResolutionHost) : void 0;
139455
+ moduleSpecifierCache == null ? void 0 : moduleSpecifierCache.setBlockedByPackageJsonDependencies(from.path, to.path, preferences, {}, importInfo == null ? void 0 : importInfo.packageName, !(importInfo == null ? void 0 : importInfo.importable));
139456
+ return !!(importInfo == null ? void 0 : importInfo.importable) || !!(importInfo == null ? void 0 : importInfo.packageName) && fileContainsPackageImport(from, importInfo.packageName);
139334
139457
  }
139335
139458
  return hasImportablePath;
139336
139459
  }
139460
+ function fileContainsPackageImport(sourceFile, packageName) {
139461
+ return sourceFile.imports && sourceFile.imports.some((i) => i.text === packageName || i.text.startsWith(packageName + "/"));
139462
+ }
139337
139463
  function isImportablePath(fromPath, toPath3, getCanonicalFileName, globalCachePath) {
139338
139464
  const toNodeModules = forEachAncestorDirectory(toPath3, (ancestor) => getBaseFileName(ancestor) === "node_modules" ? ancestor : void 0);
139339
139465
  const toNodeModulesParent = toNodeModules && getDirectoryPath(getCanonicalFileName(toNodeModules));
@@ -142331,6 +142457,7 @@ function transpileWorker(input, transpileOptions, declaration) {
142331
142457
  options.isolatedDeclarations = true;
142332
142458
  } else {
142333
142459
  options.declaration = false;
142460
+ options.declarationMap = false;
142334
142461
  }
142335
142462
  const newLine = getNewLineCharacter(options);
142336
142463
  const compilerHost = {
@@ -156155,7 +156282,7 @@ function getExportInfos(symbolName2, isJsxTagName, currentTokenMeaning, cancella
156155
156282
  });
156156
156283
  function addSymbol(moduleSymbol, toFile, exportedSymbol, exportKind, program2, isFromPackageJson) {
156157
156284
  const moduleSpecifierResolutionHost = getModuleSpecifierResolutionHost(isFromPackageJson);
156158
- if (toFile && isImportableFile(program2, fromFile, toFile, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) || !toFile && packageJsonFilter.allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost)) {
156285
+ if (toFile && isImportableFile(program2, fromFile, toFile, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) || (!toFile && packageJsonFilter.allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost) || fileContainsPackageImport(fromFile, stripQuotes(moduleSymbol.name)))) {
156159
156286
  const checker = program2.getTypeChecker();
156160
156287
  originalSymbolToExportInfos.add(getUniqueSymbolId(exportedSymbol, checker).toString(), { symbol: exportedSymbol, moduleSymbol, moduleFileName: toFile == null ? void 0 : toFile.fileName, exportKind, targetFlags: skipAlias(exportedSymbol, checker).flags, isFromPackageJson });
156161
156288
  }
@@ -161777,6 +161904,9 @@ function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, con
161777
161904
  break;
161778
161905
  }
161779
161906
  for (const signature of signatures) {
161907
+ if (signature.declaration && signature.declaration.flags & 33554432 /* Ambient */) {
161908
+ continue;
161909
+ }
161780
161910
  outputMethod(quotePreference, signature, modifiers, createName(declarationName));
161781
161911
  }
161782
161912
  if (!ambient) {
@@ -166126,7 +166256,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
166126
166256
  if (ts_JsTyping_exports.nodeCoreModules.has(moduleName) && startsWith(moduleName, "node:") !== shouldUseUriStyleNodeCoreModules(sourceFile, program)) {
166127
166257
  return false;
166128
166258
  }
166129
- return packageJsonFilter ? packageJsonFilter.allowsImportingAmbientModule(info.moduleSymbol, getModuleSpecifierResolutionHost(info.isFromPackageJson)) : true;
166259
+ return ((packageJsonFilter == null ? void 0 : packageJsonFilter.allowsImportingAmbientModule(info.moduleSymbol, getModuleSpecifierResolutionHost(info.isFromPackageJson))) ?? true) || fileContainsPackageImport(sourceFile, moduleName);
166130
166260
  }
166131
166261
  return isImportableFile(
166132
166262
  info.isFromPackageJson ? packageJsonAutoImportProvider : program,
@@ -170839,12 +170969,13 @@ function getDefinitionAtPosition(program, sourceFile, position, searchOtherFiles
170839
170969
  const calledDeclaration = tryGetSignatureDeclaration(typeChecker, node);
170840
170970
  if (calledDeclaration && !(isJsxOpeningLikeElement(node.parent) && isJsxConstructorLike(calledDeclaration))) {
170841
170971
  const sigInfo = createDefinitionFromSignatureDeclaration(typeChecker, calledDeclaration, failedAliasResolution);
170972
+ let declarationFilter = (d) => d !== calledDeclaration;
170842
170973
  if (typeChecker.getRootSymbols(symbol).some((s) => symbolMatchesSignature(s, calledDeclaration))) {
170843
- return [sigInfo];
170844
- } else {
170845
- const defs = getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, calledDeclaration) || emptyArray;
170846
- return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo];
170974
+ if (!isConstructorDeclaration(calledDeclaration)) return [sigInfo];
170975
+ declarationFilter = (d) => d !== calledDeclaration && (isClassDeclaration(d) || isClassExpression(d));
170847
170976
  }
170977
+ const defs = getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, declarationFilter) || emptyArray;
170978
+ return node.kind === 108 /* SuperKeyword */ ? [sigInfo, ...defs] : [...defs, sigInfo];
170848
170979
  }
170849
170980
  if (node.parent.kind === 304 /* ShorthandPropertyAssignment */) {
170850
170981
  const shorthandSymbol = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration);
@@ -171101,9 +171232,9 @@ function isExpandoDeclaration(node) {
171101
171232
  });
171102
171233
  return !!containingAssignment && getAssignmentDeclarationKind(containingAssignment) === 5 /* Property */;
171103
171234
  }
171104
- function getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, excludeDeclaration) {
171105
- const filteredDeclarations = filter(symbol.declarations, (d) => d !== excludeDeclaration);
171106
- const signatureDefinition = getConstructSignatureDefinition() || getCallSignatureDefinition();
171235
+ function getDefinitionFromSymbol(typeChecker, symbol, node, failedAliasResolution, declarationFilter) {
171236
+ const filteredDeclarations = declarationFilter !== void 0 ? filter(symbol.declarations, declarationFilter) : symbol.declarations;
171237
+ const signatureDefinition = !declarationFilter && (getConstructSignatureDefinition() || getCallSignatureDefinition());
171107
171238
  if (signatureDefinition) {
171108
171239
  return signatureDefinition;
171109
171240
  }
@@ -179907,6 +180038,7 @@ __export(ts_exports2, {
179907
180038
  extensionsNotSupportingExtensionlessResolution: () => extensionsNotSupportingExtensionlessResolution,
179908
180039
  externalHelpersModuleNameText: () => externalHelpersModuleNameText,
179909
180040
  factory: () => factory,
180041
+ fileContainsPackageImport: () => fileContainsPackageImport,
179910
180042
  fileExtensionIs: () => fileExtensionIs,
179911
180043
  fileExtensionIsOneOf: () => fileExtensionIsOneOf,
179912
180044
  fileIncludeReasonToDiagnostics: () => fileIncludeReasonToDiagnostics,
@@ -189192,6 +189324,8 @@ function createModuleSpecifierCache(host) {
189192
189324
  kind,
189193
189325
  modulePaths,
189194
189326
  moduleSpecifiers,
189327
+ /*packageName*/
189328
+ void 0,
189195
189329
  /*isBlockedByPackageJsonDependencies*/
189196
189330
  false
189197
189331
  ));
@@ -189222,16 +189356,19 @@ function createModuleSpecifierCache(host) {
189222
189356
  modulePaths,
189223
189357
  /*moduleSpecifiers*/
189224
189358
  void 0,
189359
+ /*packageName*/
189360
+ void 0,
189225
189361
  /*isBlockedByPackageJsonDependencies*/
189226
189362
  void 0
189227
189363
  ));
189228
189364
  }
189229
189365
  },
189230
- setBlockedByPackageJsonDependencies(fromFileName, toFileName2, preferences, options, isBlockedByPackageJsonDependencies) {
189366
+ setBlockedByPackageJsonDependencies(fromFileName, toFileName2, preferences, options, packageName, isBlockedByPackageJsonDependencies) {
189231
189367
  const cache2 = ensureCache(fromFileName, preferences, options);
189232
189368
  const info = cache2.get(toFileName2);
189233
189369
  if (info) {
189234
189370
  info.isBlockedByPackageJsonDependencies = isBlockedByPackageJsonDependencies;
189371
+ info.packageName = packageName;
189235
189372
  } else {
189236
189373
  cache2.set(toFileName2, createInfo(
189237
189374
  /*kind*/
@@ -189240,6 +189377,7 @@ function createModuleSpecifierCache(host) {
189240
189377
  void 0,
189241
189378
  /*moduleSpecifiers*/
189242
189379
  void 0,
189380
+ packageName,
189243
189381
  isBlockedByPackageJsonDependencies
189244
189382
  ));
189245
189383
  }
@@ -189269,8 +189407,8 @@ function createModuleSpecifierCache(host) {
189269
189407
  function key(fromFileName, preferences, options) {
189270
189408
  return `${fromFileName},${preferences.importModuleSpecifierEnding},${preferences.importModuleSpecifierPreference},${options.overrideImportMode}`;
189271
189409
  }
189272
- function createInfo(kind, modulePaths, moduleSpecifiers, isBlockedByPackageJsonDependencies) {
189273
- return { kind, modulePaths, moduleSpecifiers, isBlockedByPackageJsonDependencies };
189410
+ function createInfo(kind, modulePaths, moduleSpecifiers, packageName, isBlockedByPackageJsonDependencies) {
189411
+ return { kind, modulePaths, moduleSpecifiers, packageName, isBlockedByPackageJsonDependencies };
189274
189412
  }
189275
189413
  }
189276
189414
 
@@ -194258,6 +194396,7 @@ if (typeof console !== "undefined") {
194258
194396
  extensionsNotSupportingExtensionlessResolution,
194259
194397
  externalHelpersModuleNameText,
194260
194398
  factory,
194399
+ fileContainsPackageImport,
194261
194400
  fileExtensionIs,
194262
194401
  fileExtensionIsOneOf,
194263
194402
  fileIncludeReasonToDiagnostics,
@@ -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": "命名空间声明必须位于与之合并的类或函数所在的相同文件内。",
63
63
  "A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434": "命名空间声明不能位于与之合并的类或函数前",
64
64
  "A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235": "命名空间声明只允许位于命名空间或模块的顶层。",
65
+ "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540": "不应使用 \"module\" 关键字声明 \"namespace\" 声明。请改用 \"namespace\" 关键字。",
65
66
  "A_non_dry_build_would_build_project_0_6357": "非 -dry 生成将生成项目“{0}”",
66
67
  "A_non_dry_build_would_delete_the_following_files_Colon_0_6356": "非 -dry 生成将删除以下文件: {0}",
67
68
  "A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374": "非 dry 生成将更新项目 '{0}' 的输出的时间戳",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.6.0-pr-59644-8",
5
+ "version": "5.6.0-pr-52095-71",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [