typescript 6.0.0-dev.20260115 → 6.0.0-dev.20260116

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.
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 = "6.0";
21
- var version = `${versionMajorMinor}.0-dev.20260115`;
21
+ var version = `${versionMajorMinor}.0-dev.20260116`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3615,7 +3615,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3615
3615
  TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
3616
3616
  TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
3617
3617
  TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
3618
- TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable";
3618
+ TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
3619
3619
  TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
3620
3620
  TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
3621
3621
  TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
@@ -6926,6 +6926,7 @@ var Diagnostics = {
6926
6926
  The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
6927
6927
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
6928
6928
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
6929
+ The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout: diag(5011, 1 /* Error */, "The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another__5011", "The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout."),
6929
6930
  Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."),
6930
6931
  Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."),
6931
6932
  Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "Compiler_option_0_requires_a_value_of_type_1_5024", "Compiler option '{0}' requires a value of type {1}."),
@@ -16572,7 +16573,7 @@ function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
16572
16573
  if (host.getRedirectFromSourceFile(sourceFile.fileName)) return false;
16573
16574
  if (options.outFile) return true;
16574
16575
  if (!options.outDir) return false;
16575
- if (options.rootDir || options.composite && options.configFilePath) {
16576
+ if (options.rootDir || options.configFilePath) {
16576
16577
  const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
16577
16578
  const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
16578
16579
  if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */) return false;
@@ -41717,7 +41718,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41717
41718
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
41718
41719
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
41719
41720
  const commonSourceDirGuesses = [];
41720
- if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
41721
+ if (state.compilerOptions.rootDir || state.compilerOptions.configFilePath) {
41721
41722
  const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
41722
41723
  commonSourceDirGuesses.push(commonDir);
41723
41724
  } else if (state.requestContainingDirectory) {
@@ -58837,6 +58838,12 @@ function createTypeChecker(host) {
58837
58838
  return t.flags & 1048576 /* Union */ && baseTypes.length === types.length ? getUnionType(baseTypes) : t.flags & 2097152 /* Intersection */ && baseTypes.length ? getIntersectionType(baseTypes) : void 0;
58838
58839
  }
58839
58840
  if (t.flags & 4194304 /* Index */) {
58841
+ if (isGenericMappedType(t.type)) {
58842
+ const mappedType = t.type;
58843
+ if (getNameTypeFromMappedType(mappedType) && !isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
58844
+ return getBaseConstraint(getIndexTypeForMappedType(mappedType, 0 /* None */));
58845
+ }
58846
+ }
58840
58847
  return stringNumberSymbolType;
58841
58848
  }
58842
58849
  if (t.flags & 134217728 /* TemplateLiteral */) {
@@ -61812,13 +61819,6 @@ function createTypeChecker(host) {
61812
61819
  keyTypes.push(propNameType === stringType ? stringOrNumberType : propNameType);
61813
61820
  }
61814
61821
  }
61815
- function hasDistributiveNameType(mappedType) {
61816
- const typeVariable = getTypeParameterFromMappedType(mappedType);
61817
- return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable);
61818
- function isDistributive(type) {
61819
- return type.flags & (3 /* AnyOrUnknown */ | 402784252 /* Primitive */ | 131072 /* Never */ | 262144 /* TypeParameter */ | 524288 /* Object */ | 67108864 /* NonPrimitive */) ? true : type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable : type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? every(type.types, isDistributive) : type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) : type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) : type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) : false;
61820
- }
61821
- }
61822
61822
  function getLiteralTypeFromPropertyName(name) {
61823
61823
  if (isPrivateIdentifier(name)) {
61824
61824
  return neverType;
@@ -61869,7 +61869,7 @@ function createTypeChecker(host) {
61869
61869
  );
61870
61870
  }
61871
61871
  function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
61872
- return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
61872
+ return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && getNameTypeFromMappedType(type) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
61873
61873
  }
61874
61874
  function getIndexType(type, indexFlags = 0 /* None */) {
61875
61875
  type = getReducedType(type);
@@ -62311,7 +62311,7 @@ function createTypeChecker(host) {
62311
62311
  return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0);
62312
62312
  }
62313
62313
  function getSimplifiedType(type, writing) {
62314
- return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
62314
+ return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type.flags & 4194304 /* Index */ ? getSimplifiedIndexType(type) : type;
62315
62315
  }
62316
62316
  function distributeIndexOverObjectType(objectType, indexType, writing) {
62317
62317
  if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !shouldDeferIndexType(objectType)) {
@@ -62382,6 +62382,12 @@ function createTypeChecker(host) {
62382
62382
  }
62383
62383
  return type;
62384
62384
  }
62385
+ function getSimplifiedIndexType(type) {
62386
+ if (isGenericMappedType(type.type) && getNameTypeFromMappedType(type.type) && !isMappedTypeWithKeyofConstraintDeclaration(type.type)) {
62387
+ return getIndexTypeForMappedType(type.type, 0 /* None */);
62388
+ }
62389
+ return type;
62390
+ }
62385
62391
  function isIntersectionEmpty(type1, type2) {
62386
62392
  return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);
62387
62393
  }
@@ -64658,7 +64664,7 @@ function createTypeChecker(host) {
64658
64664
  }
64659
64665
  function getNormalizedType(type, writing) {
64660
64666
  while (true) {
64661
- const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
64667
+ const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
64662
64668
  if (t === type) return t;
64663
64669
  type = t;
64664
64670
  }
@@ -64688,7 +64694,7 @@ function createTypeChecker(host) {
64688
64694
  }
64689
64695
  function getNormalizedTupleType(type, writing) {
64690
64696
  const elements = getElementTypes(type);
64691
- const normalizedElements = sameMap(elements, (t) => t.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
64697
+ const normalizedElements = sameMap(elements, (t) => t.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
64692
64698
  return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type;
64693
64699
  }
64694
64700
  function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {
@@ -81724,9 +81730,8 @@ function createTypeChecker(host) {
81724
81730
  }
81725
81731
  const objectType = type.objectType;
81726
81732
  const indexType = type.indexType;
81727
- const objectIndexType = isGenericMappedType(objectType) && getMappedTypeNameTypeKind(objectType) === 2 /* Remapping */ ? getIndexTypeForMappedType(objectType, 0 /* None */) : getIndexType(objectType, 0 /* None */);
81728
81733
  const hasNumberIndexInfo = !!getIndexInfoOfType(objectType, numberType);
81729
- if (everyType(indexType, (t) => isTypeAssignableTo(t, objectIndexType) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) {
81734
+ if (everyType(indexType, (t) => isTypeAssignableTo(t, getIndexType(objectType, 0 /* None */)) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) {
81730
81735
  if (accessNode.kind === 213 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) {
81731
81736
  error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));
81732
81737
  }
@@ -115945,7 +115950,7 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
115945
115950
  if (options.rootDir) {
115946
115951
  commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory);
115947
115952
  checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir);
115948
- } else if (options.composite && options.configFilePath) {
115953
+ } else if (options.configFilePath) {
115949
115954
  commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath));
115950
115955
  checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory);
115951
115956
  } else {
@@ -115956,6 +115961,13 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
115956
115961
  }
115957
115962
  return commonSourceDirectory;
115958
115963
  }
115964
+ function getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName) {
115965
+ let commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles, currentDirectory, getCanonicalFileName);
115966
+ if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) {
115967
+ commonSourceDirectory += directorySeparator;
115968
+ }
115969
+ return commonSourceDirectory;
115970
+ }
115959
115971
  function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) {
115960
115972
  return getCommonSourceDirectory(
115961
115973
  options,
@@ -124388,6 +124400,31 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124388
124400
  createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
124389
124401
  }
124390
124402
  }
124403
+ if (!options.noEmit && !options.composite && !options.rootDir && options.configFilePath && (options.outDir || // there is --outDir specified
124404
+ getEmitDeclarations(options) && options.declarationDir || // there is --declarationDir specified
124405
+ options.outFile)) {
124406
+ const dir = getCommonSourceDirectory2();
124407
+ const emittedFiles = mapDefined(files, (file) => !file.isDeclarationFile && sourceFileMayBeEmitted(file, program) ? file.fileName : void 0);
124408
+ const dir59 = getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName);
124409
+ if (dir59 !== "" && getCanonicalFileName(dir) !== getCanonicalFileName(dir59)) {
124410
+ createDiagnosticForOption(
124411
+ /*onKey*/
124412
+ true,
124413
+ options.outFile ? "outFile" : options.outDir ? "outDir" : "declarationDir",
124414
+ !options.outFile && options.outDir ? "declarationDir" : void 0,
124415
+ chainDiagnosticMessages(
124416
+ chainDiagnosticMessages(
124417
+ /*details*/
124418
+ void 0,
124419
+ Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
124420
+ ),
124421
+ Diagnostics.The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout,
124422
+ getBaseFileName(options.configFilePath),
124423
+ getRelativePathFromFile(options.configFilePath, dir59, getCanonicalFileName)
124424
+ )
124425
+ );
124426
+ }
124427
+ }
124391
124428
  if (options.checkJs && !getAllowJSCompilerOption(options)) {
124392
124429
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs");
124393
124430
  }
@@ -127811,7 +127848,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127811
127848
  shouldRetryResolution,
127812
127849
  logChanges
127813
127850
  }) {
127814
- var _a;
127851
+ var _a, _b;
127815
127852
  const path = resolutionHost.toPath(containingFile);
127816
127853
  const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);
127817
127854
  const resolvedModules = [];
@@ -127832,7 +127869,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127832
127869
  resolutionHost.onDiscoveredSymlink();
127833
127870
  }
127834
127871
  resolutionsInFile.set(name, mode, resolution);
127835
- if (resolution !== existingResolution) {
127872
+ if (resolution !== existingResolution && !((_b = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _b.call(resolutionHost, path))) {
127836
127873
  watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
127837
127874
  if (existingResolution) {
127838
127875
  stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);
@@ -127869,8 +127906,11 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127869
127906
  );
127870
127907
  if (resolutionsInFile.size() !== seenNamesInFile.size()) {
127871
127908
  resolutionsInFile.forEach((resolution, name, mode) => {
127909
+ var _a2;
127872
127910
  if (!seenNamesInFile.has(name, mode)) {
127873
- stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);
127911
+ if (!((_a2 = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _a2.call(resolutionHost, path))) {
127912
+ stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);
127913
+ }
127874
127914
  resolutionsInFile.delete(name, mode);
127875
127915
  }
127876
127916
  });
@@ -128284,15 +128324,18 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
128284
128324
  }, nonRecursive ? 0 /* None */ : 1 /* Recursive */);
128285
128325
  }
128286
128326
  function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) {
128327
+ var _a;
128287
128328
  const resolutions = cache.get(filePath);
128288
128329
  if (resolutions) {
128289
- resolutions.forEach(
128290
- (resolution) => stopWatchFailedLookupLocationOfResolution(
128291
- resolution,
128292
- filePath,
128293
- getResolutionWithResolvedFileName
128294
- )
128295
- );
128330
+ if (!((_a = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _a.call(resolutionHost, filePath))) {
128331
+ resolutions.forEach(
128332
+ (resolution) => stopWatchFailedLookupLocationOfResolution(
128333
+ resolution,
128334
+ filePath,
128335
+ getResolutionWithResolvedFileName
128336
+ )
128337
+ );
128338
+ }
128296
128339
  cache.delete(filePath);
128297
128340
  }
128298
128341
  }
@@ -128447,11 +128490,16 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
128447
128490
  }, 1 /* Recursive */) : noopFileWatcher;
128448
128491
  }
128449
128492
  function updateTypeRootsWatch() {
128493
+ var _a;
128450
128494
  const options = resolutionHost.getCompilationSettings();
128451
128495
  if (options.types) {
128452
128496
  closeTypeRootsWatch();
128453
128497
  return;
128454
128498
  }
128499
+ if (!isRootWatchable || ((_a = resolutionHost.skipWatchingTypeRoots) == null ? void 0 : _a.call(resolutionHost))) {
128500
+ closeTypeRootsWatch();
128501
+ return;
128502
+ }
128455
128503
  const typeRoots = getEffectiveTypeRoots(options, { getCurrentDirectory });
128456
128504
  if (typeRoots) {
128457
128505
  mutateMap(
package/lib/typescript.js CHANGED
@@ -673,6 +673,7 @@ __export(typescript_exports, {
673
673
  getCommonSourceDirectory: () => getCommonSourceDirectory,
674
674
  getCommonSourceDirectoryOfConfig: () => getCommonSourceDirectoryOfConfig,
675
675
  getCompilerOptionValue: () => getCompilerOptionValue,
676
+ getComputedCommonSourceDirectory: () => getComputedCommonSourceDirectory,
676
677
  getConditions: () => getConditions,
677
678
  getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics,
678
679
  getConstantValue: () => getConstantValue,
@@ -2285,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2286
 
2286
2287
  // src/compiler/corePublic.ts
2287
2288
  var versionMajorMinor = "6.0";
2288
- var version = `${versionMajorMinor}.0-dev.20260115`;
2289
+ var version = `${versionMajorMinor}.0-dev.20260116`;
2289
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6487,7 +6488,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
6487
6488
  TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
6488
6489
  TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
6489
6490
  TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
6490
- TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable";
6491
+ TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
6491
6492
  TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
6492
6493
  TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
6493
6494
  TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
@@ -10326,6 +10327,7 @@ var Diagnostics = {
10326
10327
  The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
10327
10328
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
10328
10329
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
10330
+ The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout: diag(5011, 1 /* Error */, "The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another__5011", "The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout."),
10329
10331
  Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."),
10330
10332
  Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."),
10331
10333
  Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "Compiler_option_0_requires_a_value_of_type_1_5024", "Compiler option '{0}' requires a value of type {1}."),
@@ -20398,7 +20400,7 @@ function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
20398
20400
  if (host.getRedirectFromSourceFile(sourceFile.fileName)) return false;
20399
20401
  if (options.outFile) return true;
20400
20402
  if (!options.outDir) return false;
20401
- if (options.rootDir || options.composite && options.configFilePath) {
20403
+ if (options.rootDir || options.configFilePath) {
20402
20404
  const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
20403
20405
  const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
20404
20406
  if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */) return false;
@@ -46227,7 +46229,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
46227
46229
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
46228
46230
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
46229
46231
  const commonSourceDirGuesses = [];
46230
- if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
46232
+ if (state.compilerOptions.rootDir || state.compilerOptions.configFilePath) {
46231
46233
  const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
46232
46234
  commonSourceDirGuesses.push(commonDir);
46233
46235
  } else if (state.requestContainingDirectory) {
@@ -63465,6 +63467,12 @@ function createTypeChecker(host) {
63465
63467
  return t.flags & 1048576 /* Union */ && baseTypes.length === types.length ? getUnionType(baseTypes) : t.flags & 2097152 /* Intersection */ && baseTypes.length ? getIntersectionType(baseTypes) : void 0;
63466
63468
  }
63467
63469
  if (t.flags & 4194304 /* Index */) {
63470
+ if (isGenericMappedType(t.type)) {
63471
+ const mappedType = t.type;
63472
+ if (getNameTypeFromMappedType(mappedType) && !isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
63473
+ return getBaseConstraint(getIndexTypeForMappedType(mappedType, 0 /* None */));
63474
+ }
63475
+ }
63468
63476
  return stringNumberSymbolType;
63469
63477
  }
63470
63478
  if (t.flags & 134217728 /* TemplateLiteral */) {
@@ -66440,13 +66448,6 @@ function createTypeChecker(host) {
66440
66448
  keyTypes.push(propNameType === stringType ? stringOrNumberType : propNameType);
66441
66449
  }
66442
66450
  }
66443
- function hasDistributiveNameType(mappedType) {
66444
- const typeVariable = getTypeParameterFromMappedType(mappedType);
66445
- return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable);
66446
- function isDistributive(type) {
66447
- return type.flags & (3 /* AnyOrUnknown */ | 402784252 /* Primitive */ | 131072 /* Never */ | 262144 /* TypeParameter */ | 524288 /* Object */ | 67108864 /* NonPrimitive */) ? true : type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable : type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? every(type.types, isDistributive) : type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) : type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) : type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) : false;
66448
- }
66449
- }
66450
66451
  function getLiteralTypeFromPropertyName(name) {
66451
66452
  if (isPrivateIdentifier(name)) {
66452
66453
  return neverType;
@@ -66497,7 +66498,7 @@ function createTypeChecker(host) {
66497
66498
  );
66498
66499
  }
66499
66500
  function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
66500
- return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
66501
+ return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && getNameTypeFromMappedType(type) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
66501
66502
  }
66502
66503
  function getIndexType(type, indexFlags = 0 /* None */) {
66503
66504
  type = getReducedType(type);
@@ -66939,7 +66940,7 @@ function createTypeChecker(host) {
66939
66940
  return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0);
66940
66941
  }
66941
66942
  function getSimplifiedType(type, writing) {
66942
- return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
66943
+ return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type.flags & 4194304 /* Index */ ? getSimplifiedIndexType(type) : type;
66943
66944
  }
66944
66945
  function distributeIndexOverObjectType(objectType, indexType, writing) {
66945
66946
  if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !shouldDeferIndexType(objectType)) {
@@ -67010,6 +67011,12 @@ function createTypeChecker(host) {
67010
67011
  }
67011
67012
  return type;
67012
67013
  }
67014
+ function getSimplifiedIndexType(type) {
67015
+ if (isGenericMappedType(type.type) && getNameTypeFromMappedType(type.type) && !isMappedTypeWithKeyofConstraintDeclaration(type.type)) {
67016
+ return getIndexTypeForMappedType(type.type, 0 /* None */);
67017
+ }
67018
+ return type;
67019
+ }
67013
67020
  function isIntersectionEmpty(type1, type2) {
67014
67021
  return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);
67015
67022
  }
@@ -69286,7 +69293,7 @@ function createTypeChecker(host) {
69286
69293
  }
69287
69294
  function getNormalizedType(type, writing) {
69288
69295
  while (true) {
69289
- const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
69296
+ const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
69290
69297
  if (t === type) return t;
69291
69298
  type = t;
69292
69299
  }
@@ -69316,7 +69323,7 @@ function createTypeChecker(host) {
69316
69323
  }
69317
69324
  function getNormalizedTupleType(type, writing) {
69318
69325
  const elements = getElementTypes(type);
69319
- const normalizedElements = sameMap(elements, (t) => t.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
69326
+ const normalizedElements = sameMap(elements, (t) => t.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
69320
69327
  return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type;
69321
69328
  }
69322
69329
  function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {
@@ -86352,9 +86359,8 @@ function createTypeChecker(host) {
86352
86359
  }
86353
86360
  const objectType = type.objectType;
86354
86361
  const indexType = type.indexType;
86355
- const objectIndexType = isGenericMappedType(objectType) && getMappedTypeNameTypeKind(objectType) === 2 /* Remapping */ ? getIndexTypeForMappedType(objectType, 0 /* None */) : getIndexType(objectType, 0 /* None */);
86356
86362
  const hasNumberIndexInfo = !!getIndexInfoOfType(objectType, numberType);
86357
- if (everyType(indexType, (t) => isTypeAssignableTo(t, objectIndexType) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) {
86363
+ if (everyType(indexType, (t) => isTypeAssignableTo(t, getIndexType(objectType, 0 /* None */)) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) {
86358
86364
  if (accessNode.kind === 213 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) {
86359
86365
  error2(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));
86360
86366
  }
@@ -120755,7 +120761,7 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
120755
120761
  if (options.rootDir) {
120756
120762
  commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory);
120757
120763
  checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir);
120758
- } else if (options.composite && options.configFilePath) {
120764
+ } else if (options.configFilePath) {
120759
120765
  commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath));
120760
120766
  checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory);
120761
120767
  } else {
@@ -120766,6 +120772,13 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
120766
120772
  }
120767
120773
  return commonSourceDirectory;
120768
120774
  }
120775
+ function getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName) {
120776
+ let commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles, currentDirectory, getCanonicalFileName);
120777
+ if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) {
120778
+ commonSourceDirectory += directorySeparator;
120779
+ }
120780
+ return commonSourceDirectory;
120781
+ }
120769
120782
  function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) {
120770
120783
  return getCommonSourceDirectory(
120771
120784
  options,
@@ -129255,6 +129268,31 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
129255
129268
  createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
129256
129269
  }
129257
129270
  }
129271
+ if (!options.noEmit && !options.composite && !options.rootDir && options.configFilePath && (options.outDir || // there is --outDir specified
129272
+ getEmitDeclarations(options) && options.declarationDir || // there is --declarationDir specified
129273
+ options.outFile)) {
129274
+ const dir = getCommonSourceDirectory2();
129275
+ const emittedFiles = mapDefined(files, (file) => !file.isDeclarationFile && sourceFileMayBeEmitted(file, program) ? file.fileName : void 0);
129276
+ const dir59 = getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName);
129277
+ if (dir59 !== "" && getCanonicalFileName(dir) !== getCanonicalFileName(dir59)) {
129278
+ createDiagnosticForOption(
129279
+ /*onKey*/
129280
+ true,
129281
+ options.outFile ? "outFile" : options.outDir ? "outDir" : "declarationDir",
129282
+ !options.outFile && options.outDir ? "declarationDir" : void 0,
129283
+ chainDiagnosticMessages(
129284
+ chainDiagnosticMessages(
129285
+ /*details*/
129286
+ void 0,
129287
+ Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
129288
+ ),
129289
+ Diagnostics.The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout,
129290
+ getBaseFileName(options.configFilePath),
129291
+ getRelativePathFromFile(options.configFilePath, dir59, getCanonicalFileName)
129292
+ )
129293
+ );
129294
+ }
129295
+ }
129258
129296
  if (options.checkJs && !getAllowJSCompilerOption(options)) {
129259
129297
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs");
129260
129298
  }
@@ -132739,7 +132777,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
132739
132777
  shouldRetryResolution,
132740
132778
  logChanges
132741
132779
  }) {
132742
- var _a;
132780
+ var _a, _b;
132743
132781
  const path = resolutionHost.toPath(containingFile);
132744
132782
  const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);
132745
132783
  const resolvedModules = [];
@@ -132760,7 +132798,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
132760
132798
  resolutionHost.onDiscoveredSymlink();
132761
132799
  }
132762
132800
  resolutionsInFile.set(name, mode, resolution);
132763
- if (resolution !== existingResolution) {
132801
+ if (resolution !== existingResolution && !((_b = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _b.call(resolutionHost, path))) {
132764
132802
  watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
132765
132803
  if (existingResolution) {
132766
132804
  stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);
@@ -132797,8 +132835,11 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
132797
132835
  );
132798
132836
  if (resolutionsInFile.size() !== seenNamesInFile.size()) {
132799
132837
  resolutionsInFile.forEach((resolution, name, mode) => {
132838
+ var _a2;
132800
132839
  if (!seenNamesInFile.has(name, mode)) {
132801
- stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);
132840
+ if (!((_a2 = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _a2.call(resolutionHost, path))) {
132841
+ stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);
132842
+ }
132802
132843
  resolutionsInFile.delete(name, mode);
132803
132844
  }
132804
132845
  });
@@ -133212,15 +133253,18 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
133212
133253
  }, nonRecursive ? 0 /* None */ : 1 /* Recursive */);
133213
133254
  }
133214
133255
  function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) {
133256
+ var _a;
133215
133257
  const resolutions = cache.get(filePath);
133216
133258
  if (resolutions) {
133217
- resolutions.forEach(
133218
- (resolution) => stopWatchFailedLookupLocationOfResolution(
133219
- resolution,
133220
- filePath,
133221
- getResolutionWithResolvedFileName
133222
- )
133223
- );
133259
+ if (!((_a = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _a.call(resolutionHost, filePath))) {
133260
+ resolutions.forEach(
133261
+ (resolution) => stopWatchFailedLookupLocationOfResolution(
133262
+ resolution,
133263
+ filePath,
133264
+ getResolutionWithResolvedFileName
133265
+ )
133266
+ );
133267
+ }
133224
133268
  cache.delete(filePath);
133225
133269
  }
133226
133270
  }
@@ -133375,11 +133419,16 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
133375
133419
  }, 1 /* Recursive */) : noopFileWatcher;
133376
133420
  }
133377
133421
  function updateTypeRootsWatch() {
133422
+ var _a;
133378
133423
  const options = resolutionHost.getCompilationSettings();
133379
133424
  if (options.types) {
133380
133425
  closeTypeRootsWatch();
133381
133426
  return;
133382
133427
  }
133428
+ if (!isRootWatchable || ((_a = resolutionHost.skipWatchingTypeRoots) == null ? void 0 : _a.call(resolutionHost))) {
133429
+ closeTypeRootsWatch();
133430
+ return;
133431
+ }
133383
133432
  const typeRoots = getEffectiveTypeRoots(options, { getCurrentDirectory });
133384
133433
  if (typeRoots) {
133385
133434
  mutateMap(
@@ -184024,6 +184073,7 @@ __export(ts_exports2, {
184024
184073
  getCommonSourceDirectory: () => getCommonSourceDirectory,
184025
184074
  getCommonSourceDirectoryOfConfig: () => getCommonSourceDirectoryOfConfig,
184026
184075
  getCompilerOptionValue: () => getCompilerOptionValue,
184076
+ getComputedCommonSourceDirectory: () => getComputedCommonSourceDirectory,
184027
184077
  getConditions: () => getConditions,
184028
184078
  getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics,
184029
184079
  getConstantValue: () => getConstantValue,
@@ -188142,6 +188192,9 @@ var Project2 = class _Project {
188142
188192
  }
188143
188193
  /** @internal */
188144
188194
  watchTypingLocations(files) {
188195
+ if (this.currentDirectory === this.projectService.currentDirectory || !canWatchDirectoryOrFilePath(this.toPath(this.currentDirectory))) {
188196
+ return;
188197
+ }
188145
188198
  if (!files) {
188146
188199
  this.typingWatchers.isInvoked = false;
188147
188200
  return;
@@ -188210,6 +188263,15 @@ var Project2 = class _Project {
188210
188263
  });
188211
188264
  }
188212
188265
  /** @internal */
188266
+ skipWatchingFailedLookups(path) {
188267
+ const info = this.projectService.getScriptInfoForPath(path);
188268
+ return info == null ? void 0 : info.isDynamic;
188269
+ }
188270
+ /** @internal */
188271
+ skipWatchingTypeRoots() {
188272
+ return isInferredProject(this) && this.currentDirectory === this.projectService.currentDirectory;
188273
+ }
188274
+ /** @internal */
188213
188275
  getCurrentProgram() {
188214
188276
  return this.program;
188215
188277
  }
@@ -198785,6 +198847,7 @@ if (typeof console !== "undefined") {
198785
198847
  getCommonSourceDirectory,
198786
198848
  getCommonSourceDirectoryOfConfig,
198787
198849
  getCompilerOptionValue,
198850
+ getComputedCommonSourceDirectory,
198788
198851
  getConditions,
198789
198852
  getConfigFileParsingDiagnostics,
198790
198853
  getConstantValue,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "6.0.0-dev.20260115",
5
+ "version": "6.0.0-dev.20260116",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "a9f534f271dcc171e35e3aa27313982b930d467d"
118
+ "gitHead": "a586c340a277e0b99cb999d6b02a2cd95609178f"
119
119
  }