typescript 5.0.0-dev.20230109 → 5.0.0-dev.20230111

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.
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-dev.20230109`;
57
+ var version = `${versionMajorMinor}.0-dev.20230111`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -6207,6 +6207,7 @@ var Diagnostics = {
6207
6207
  Default_export_of_the_module_has_or_is_using_private_name_0: diag(4082, 1 /* Error */, "Default_export_of_the_module_has_or_is_using_private_name_0_4082", "Default export of the module has or is using private name '{0}'."),
6208
6208
  Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: diag(4083, 1 /* Error */, "Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083", "Type parameter '{0}' of exported type alias has or is using private name '{1}'."),
6209
6209
  Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: diag(4084, 1 /* Error */, "Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084", "Exported type alias '{0}' has or is using private name '{1}' from module {2}."),
6210
+ Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1: diag(4085, 1 /* Error */, "Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085", "Extends clause for inferred type '{0}' has or is using private name '{1}'."),
6210
6211
  Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: diag(4090, 1 /* Error */, "Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090", "Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),
6211
6212
  Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4091, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091", "Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),
6212
6213
  Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4092, 1 /* Error */, "Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092", "Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),
@@ -6578,6 +6579,9 @@ var Diagnostics = {
6578
6579
  Found_1_error_in_1: diag(6259, 3 /* Message */, "Found_1_error_in_1_6259", "Found 1 error in {1}"),
6579
6580
  Found_0_errors_in_the_same_file_starting_at_Colon_1: diag(6260, 3 /* Message */, "Found_0_errors_in_the_same_file_starting_at_Colon_1_6260", "Found {0} errors in the same file, starting at: {1}"),
6580
6581
  Found_0_errors_in_1_files: diag(6261, 3 /* Message */, "Found_0_errors_in_1_files_6261", "Found {0} errors in {1} files."),
6582
+ File_name_0_has_a_1_extension_looking_up_2_instead: diag(6262, 3 /* Message */, "File_name_0_has_a_1_extension_looking_up_2_instead_6262", "File name '{0}' has a '{1}' extension - looking up '{2}' instead."),
6583
+ Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set: diag(6263, 1 /* Error */, "Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263", "Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),
6584
+ Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present: diag(6264, 3 /* Message */, "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264", "Enable importing files with any extension, provided a declaration file is present."),
6581
6585
  Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve: diag(6270, 3 /* Message */, "Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270", "Directory '{0}' has no containing package.json scope. Imports will not resolve."),
6582
6586
  Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1: diag(6271, 3 /* Message */, "Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271", "Import specifier '{0}' does not exist in package.json scope at path '{1}'."),
6583
6587
  Invalid_import_specifier_0_has_no_possible_resolutions: diag(6272, 3 /* Message */, "Invalid_import_specifier_0_has_no_possible_resolutions_6272", "Invalid import specifier '{0}' has no possible resolutions."),
@@ -11421,7 +11425,7 @@ function hostGetCanonicalFileName(host) {
11421
11425
  return createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(host));
11422
11426
  }
11423
11427
  function getPossibleOriginalInputExtensionForExtension(path2) {
11424
- return fileExtensionIsOneOf(path2, [".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".mts" /* Mts */]) ? [".mts" /* Mts */, ".mjs" /* Mjs */] : fileExtensionIsOneOf(path2, [".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".cts" /* Cts */]) ? [".cts" /* Cts */, ".cjs" /* Cjs */] : fileExtensionIsOneOf(path2, [`.json.d.ts`]) ? [".json" /* Json */] : [".tsx" /* Tsx */, ".ts" /* Ts */, ".jsx" /* Jsx */, ".js" /* Js */];
11428
+ return fileExtensionIsOneOf(path2, [".d.mts" /* Dmts */, ".mjs" /* Mjs */, ".mts" /* Mts */]) ? [".mts" /* Mts */, ".mjs" /* Mjs */] : fileExtensionIsOneOf(path2, [".d.cts" /* Dcts */, ".cjs" /* Cjs */, ".cts" /* Cts */]) ? [".cts" /* Cts */, ".cjs" /* Cjs */] : fileExtensionIsOneOf(path2, [`.d.json.ts`]) ? [".json" /* Json */] : [".tsx" /* Tsx */, ".ts" /* Ts */, ".jsx" /* Jsx */, ".js" /* Js */];
11425
11429
  }
11426
11430
  function outFile(options) {
11427
11431
  return options.outFile || options.out;
@@ -22097,7 +22101,7 @@ var Parser;
22097
22101
  const pos = getNodePos();
22098
22102
  return finishNode(factory2.createVoidExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);
22099
22103
  }
22100
- function isAwaitExpression() {
22104
+ function isAwaitExpression2() {
22101
22105
  if (token() === 133 /* AwaitKeyword */) {
22102
22106
  if (inAwaitContext()) {
22103
22107
  return true;
@@ -22145,7 +22149,7 @@ var Parser;
22145
22149
  case 29 /* LessThanToken */:
22146
22150
  return parseTypeAssertion();
22147
22151
  case 133 /* AwaitKeyword */:
22148
- if (isAwaitExpression()) {
22152
+ if (isAwaitExpression2()) {
22149
22153
  return parseAwaitExpression();
22150
22154
  }
22151
22155
  default:
@@ -25808,7 +25812,7 @@ var IncrementalParser;
25808
25812
  })(InvalidPosition || (InvalidPosition = {}));
25809
25813
  })(IncrementalParser || (IncrementalParser = {}));
25810
25814
  function isDeclarationFileName(fileName) {
25811
- return fileExtensionIsOneOf(fileName, supportedDeclarationExtensions);
25815
+ return fileExtensionIsOneOf(fileName, supportedDeclarationExtensions) || fileExtensionIs(fileName, ".ts" /* Ts */) && stringContains(getBaseFileName(fileName), ".d.");
25812
25816
  }
25813
25817
  function parseResolutionMode(mode, pos, end, reportDiagnostic) {
25814
25818
  if (!mode) {
@@ -27066,6 +27070,14 @@ var commandOptionsWithoutBuild = [
27066
27070
  description: Diagnostics.Enable_importing_json_files,
27067
27071
  defaultValueDescription: false
27068
27072
  },
27073
+ {
27074
+ name: "allowArbitraryExtensions",
27075
+ type: "boolean",
27076
+ affectsModuleResolution: true,
27077
+ category: Diagnostics.Modules,
27078
+ description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,
27079
+ defaultValueDescription: false
27080
+ },
27069
27081
  {
27070
27082
  name: "out",
27071
27083
  type: "string",
@@ -28473,7 +28485,8 @@ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory,
28473
28485
  conditions,
28474
28486
  requestContainingDirectory: containingDirectory,
28475
28487
  reportDiagnostic: (diag2) => void diagnostics.push(diag2),
28476
- isConfigLookup
28488
+ isConfigLookup,
28489
+ candidateIsFromPackageJsonField: false
28477
28490
  };
28478
28491
  if (traceEnabled && getEmitModuleResolutionKind(compilerOptions) >= 3 /* Node16 */ && getEmitModuleResolutionKind(compilerOptions) <= 99 /* NodeNext */) {
28479
28492
  trace(host, Diagnostics.Resolving_in_0_mode_with_conditions_1, features & 32 /* EsmMode */ ? "ESM" : "CJS", conditions.map((c) => `'${c}'`).join(", "));
@@ -28641,14 +28654,19 @@ function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {
28641
28654
  }
28642
28655
  }
28643
28656
  function loadModuleFromFileNoImplicitExtensions(extensions, candidate, onlyRecordFailures, state) {
28644
- if (hasJSFileExtension(candidate) || extensions & 8 /* Json */ && fileExtensionIs(candidate, ".json" /* Json */) || extensions & (1 /* TypeScript */ | 4 /* Declaration */) && moduleResolutionSupportsResolvingTsExtensions(state.compilerOptions) && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat)) {
28645
- const extensionless = removeFileExtension(candidate);
28646
- const extension = candidate.substring(extensionless.length);
28647
- if (state.traceEnabled) {
28648
- trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension);
28649
- }
28650
- return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state);
28657
+ const filename = getBaseFileName(candidate);
28658
+ if (filename.indexOf(".") === -1) {
28659
+ return void 0;
28651
28660
  }
28661
+ let extensionless = removeFileExtension(candidate);
28662
+ if (extensionless === candidate) {
28663
+ extensionless = candidate.substring(0, candidate.lastIndexOf("."));
28664
+ }
28665
+ const extension = candidate.substring(extensionless.length);
28666
+ if (state.traceEnabled) {
28667
+ trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension);
28668
+ }
28669
+ return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state);
28652
28670
  }
28653
28671
  function loadFileNameFromPackageJsonField(extensions, candidate, onlyRecordFailures, state) {
28654
28672
  if (extensions & 1 /* TypeScript */ && fileExtensionIsOneOf(candidate, supportedTSImplementationExtensions) || extensions & 4 /* Declaration */ && fileExtensionIsOneOf(candidate, supportedDeclarationExtensions)) {
@@ -28672,42 +28690,27 @@ function tryAddingExtensions(candidate, extensions, originalExtension, onlyRecor
28672
28690
  case ".mjs" /* Mjs */:
28673
28691
  case ".mts" /* Mts */:
28674
28692
  case ".d.mts" /* Dmts */:
28675
- return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
28693
+ return extensions & 1 /* TypeScript */ && tryExtension(".mts" /* Mts */, originalExtension === ".mts" /* Mts */ || originalExtension === ".d.mts" /* Dmts */) || extensions & 4 /* Declaration */ && tryExtension(".d.mts" /* Dmts */, originalExtension === ".mts" /* Mts */ || originalExtension === ".d.mts" /* Dmts */) || extensions & 2 /* JavaScript */ && tryExtension(".mjs" /* Mjs */) || void 0;
28676
28694
  case ".cjs" /* Cjs */:
28677
28695
  case ".cts" /* Cts */:
28678
28696
  case ".d.cts" /* Dcts */:
28679
- return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
28697
+ return extensions & 1 /* TypeScript */ && tryExtension(".cts" /* Cts */, originalExtension === ".cts" /* Cts */ || originalExtension === ".d.cts" /* Dcts */) || extensions & 4 /* Declaration */ && tryExtension(".d.cts" /* Dcts */, originalExtension === ".cts" /* Cts */ || originalExtension === ".d.cts" /* Dcts */) || extensions & 2 /* JavaScript */ && tryExtension(".cjs" /* Cjs */) || void 0;
28680
28698
  case ".json" /* Json */:
28681
- const originalCandidate = candidate;
28682
- if (extensions & 4 /* Declaration */) {
28683
- candidate += ".json" /* Json */;
28684
- const result = tryExtension(".d.ts" /* Dts */);
28685
- if (result)
28686
- return result;
28687
- }
28688
- if (extensions & 8 /* Json */) {
28689
- candidate = originalCandidate;
28690
- const result = tryExtension(".json" /* Json */);
28691
- if (result)
28692
- return result;
28693
- }
28694
- return void 0;
28695
- case ".ts" /* Ts */:
28699
+ return extensions & 4 /* Declaration */ && tryExtension(".d.json.ts") || extensions & 8 /* Json */ && tryExtension(".json" /* Json */) || void 0;
28696
28700
  case ".tsx" /* Tsx */:
28701
+ case ".jsx" /* Jsx */:
28702
+ return extensions & 1 /* TypeScript */ && (tryExtension(".tsx" /* Tsx */, originalExtension === ".tsx" /* Tsx */) || tryExtension(".ts" /* Ts */, originalExtension === ".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */, originalExtension === ".tsx" /* Tsx */) || extensions & 2 /* JavaScript */ && (tryExtension(".jsx" /* Jsx */) || tryExtension(".js" /* Js */)) || void 0;
28703
+ case ".ts" /* Ts */:
28697
28704
  case ".d.ts" /* Dts */:
28698
- if (moduleResolutionSupportsResolvingTsExtensions(state.compilerOptions) && extensionIsOk(extensions, originalExtension)) {
28699
- return tryExtension(
28700
- originalExtension,
28701
- /*resolvedUsingTsExtension*/
28702
- true
28703
- );
28704
- }
28705
+ case ".js" /* Js */:
28706
+ case "":
28707
+ return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */) || tryExtension(".tsx" /* Tsx */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */, originalExtension === ".ts" /* Ts */ || originalExtension === ".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0;
28705
28708
  default:
28706
- return extensions & 1 /* TypeScript */ && (tryExtension(".ts" /* Ts */) || tryExtension(".tsx" /* Tsx */)) || extensions & 4 /* Declaration */ && tryExtension(".d.ts" /* Dts */) || extensions & 2 /* JavaScript */ && (tryExtension(".js" /* Js */) || tryExtension(".jsx" /* Jsx */)) || state.isConfigLookup && tryExtension(".json" /* Json */) || void 0;
28709
+ return extensions & 4 /* Declaration */ && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) || void 0;
28707
28710
  }
28708
28711
  function tryExtension(ext, resolvedUsingTsExtension) {
28709
28712
  const path2 = tryFile(candidate + ext, onlyRecordFailures, state);
28710
- return path2 === void 0 ? void 0 : { path: path2, ext, resolvedUsingTsExtension };
28713
+ return path2 === void 0 ? void 0 : { path: path2, ext, resolvedUsingTsExtension: !state.candidateIsFromPackageJsonField && resolvedUsingTsExtension };
28711
28714
  }
28712
28715
  }
28713
28716
  function tryFile(fileName, onlyRecordFailures, state) {
@@ -28826,6 +28829,8 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
28826
28829
  }
28827
28830
  const expandedExtensions = extensions2 === 4 /* Declaration */ ? 1 /* TypeScript */ | 4 /* Declaration */ : extensions2;
28828
28831
  const features = state2.features;
28832
+ const candidateIsFromPackageJsonField = state2.candidateIsFromPackageJsonField;
28833
+ state2.candidateIsFromPackageJsonField = true;
28829
28834
  if ((jsonContent == null ? void 0 : jsonContent.type) !== "module") {
28830
28835
  state2.features &= ~32 /* EsmMode */;
28831
28836
  }
@@ -28838,6 +28843,7 @@ function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFail
28838
28843
  false
28839
28844
  );
28840
28845
  state2.features = features;
28846
+ state2.candidateIsFromPackageJsonField = candidateIsFromPackageJsonField;
28841
28847
  return result;
28842
28848
  };
28843
28849
  const onlyRecordFailuresForPackageFile = packageFile ? !directoryProbablyExists(getDirectoryPath(packageFile), state.host) : void 0;
@@ -28911,7 +28917,10 @@ function loadModuleFromSelfNameReference(extensions, moduleName, directory, stat
28911
28917
  return void 0;
28912
28918
  }
28913
28919
  const trailingParts = parts.slice(nameParts.length);
28914
- return loadModuleFromExports(scope, extensions, !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`, state, cache, redirectedReference);
28920
+ const subpath = !length(trailingParts) ? "." : `.${directorySeparator}${trailingParts.join(directorySeparator)}`;
28921
+ const priorityExtensions = extensions & (1 /* TypeScript */ | 4 /* Declaration */);
28922
+ const secondaryExtensions = extensions & ~(1 /* TypeScript */ | 4 /* Declaration */);
28923
+ return loadModuleFromExports(scope, priorityExtensions, subpath, state, cache, redirectedReference) || loadModuleFromExports(scope, secondaryExtensions, subpath, state, cache, redirectedReference);
28915
28924
  }
28916
28925
  function loadModuleFromExports(scope, extensions, subpath, state, cache, redirectedReference) {
28917
28926
  if (!scope.contents.packageJsonContent.exports) {
@@ -29413,25 +29422,26 @@ function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, dir
29413
29422
  }
29414
29423
  }
29415
29424
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
29416
- var _a2;
29425
+ var _a2, _b, _c;
29417
29426
  const candidate = normalizePath(combinePaths(nodeModulesDirectory, moduleName));
29427
+ const { packageName, rest } = parsePackageName(moduleName);
29428
+ const packageDirectory = combinePaths(nodeModulesDirectory, packageName);
29429
+ let rootPackageInfo;
29418
29430
  let packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);
29419
- if (!(state.features & 8 /* Exports */)) {
29420
- if (packageInfo) {
29421
- const fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state);
29422
- if (fromFile) {
29423
- return noPackageId(fromFile);
29424
- }
29425
- const fromDirectory = loadNodeModuleFromDirectoryWorker(
29426
- extensions,
29427
- candidate,
29428
- !nodeModulesDirectoryExists,
29429
- state,
29430
- packageInfo.contents.packageJsonContent,
29431
- getVersionPathsOfPackageJsonInfo(packageInfo, state)
29432
- );
29433
- return withPackageId(packageInfo, fromDirectory);
29431
+ if (rest !== "" && packageInfo && (!(state.features & 8 /* Exports */) || !hasProperty((_b = (_a2 = rootPackageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state)) == null ? void 0 : _a2.contents.packageJsonContent) != null ? _b : emptyArray, "exports"))) {
29432
+ const fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state);
29433
+ if (fromFile) {
29434
+ return noPackageId(fromFile);
29434
29435
  }
29436
+ const fromDirectory = loadNodeModuleFromDirectoryWorker(
29437
+ extensions,
29438
+ candidate,
29439
+ !nodeModulesDirectoryExists,
29440
+ state,
29441
+ packageInfo.contents.packageJsonContent,
29442
+ getVersionPathsOfPackageJsonInfo(packageInfo, state)
29443
+ );
29444
+ return withPackageId(packageInfo, fromDirectory);
29435
29445
  }
29436
29446
  const loader = (extensions2, candidate2, onlyRecordFailures, state2) => {
29437
29447
  let pathAndExtension = loadModuleFromFile(extensions2, candidate2, onlyRecordFailures, state2) || loadNodeModuleFromDirectoryWorker(
@@ -29447,13 +29457,11 @@ function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, node
29447
29457
  }
29448
29458
  return withPackageId(packageInfo, pathAndExtension);
29449
29459
  };
29450
- const { packageName, rest } = parsePackageName(moduleName);
29451
- const packageDirectory = combinePaths(nodeModulesDirectory, packageName);
29452
29460
  if (rest !== "") {
29453
- packageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
29461
+ packageInfo = rootPackageInfo != null ? rootPackageInfo : getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
29454
29462
  }
29455
29463
  if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & 8 /* Exports */) {
29456
- return (_a2 = loadModuleFromExports(packageInfo, extensions, combinePaths(".", rest), state, cache, redirectedReference)) == null ? void 0 : _a2.value;
29464
+ return (_c = loadModuleFromExports(packageInfo, extensions, combinePaths(".", rest), state, cache, redirectedReference)) == null ? void 0 : _c.value;
29457
29465
  }
29458
29466
  const versionPaths = rest !== "" && packageInfo ? getVersionPathsOfPackageJsonInfo(packageInfo, state) : void 0;
29459
29467
  if (versionPaths) {
@@ -29557,7 +29565,8 @@ function classicNameResolver(moduleName, containingFile, compilerOptions, host,
29557
29565
  conditions: [],
29558
29566
  requestContainingDirectory: containingDirectory,
29559
29567
  reportDiagnostic: (diag2) => void diagnostics.push(diag2),
29560
- isConfigLookup: false
29568
+ isConfigLookup: false,
29569
+ candidateIsFromPackageJsonField: false
29561
29570
  };
29562
29571
  const resolved = tryResolve(1 /* TypeScript */ | 4 /* Declaration */) || tryResolve(2 /* JavaScript */ | (compilerOptions.resolveJsonModule ? 8 /* Json */ : 0));
29563
29572
  return createResolvedModuleWithFailedLookupLocations(
@@ -29614,9 +29623,6 @@ function classicNameResolver(moduleName, containingFile, compilerOptions, host,
29614
29623
  }
29615
29624
  }
29616
29625
  }
29617
- function moduleResolutionSupportsResolvingTsExtensions(compilerOptions) {
29618
- return getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */;
29619
- }
29620
29626
  function toSearchResult(value) {
29621
29627
  return value !== void 0 ? { value } : void 0;
29622
29628
  }
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": "5.0.0-dev.20230109",
5
+ "version": "5.0.0-dev.20230111",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [