typescript 5.9.0-dev.20250604 → 5.9.0-dev.20250606

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 = "5.9";
21
- var version = `${versionMajorMinor}.0-dev.20250604`;
21
+ var version = `${versionMajorMinor}.0-dev.20250606`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -16534,7 +16534,7 @@ function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
16534
16534
  if (forceDtsEmit) return true;
16535
16535
  if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) return false;
16536
16536
  if (!isJsonSourceFile(sourceFile)) return true;
16537
- if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) return false;
16537
+ if (host.getRedirectFromSourceFile(sourceFile.fileName)) return false;
16538
16538
  if (options.outFile) return true;
16539
16539
  if (!options.outDir) return false;
16540
16540
  if (options.rootDir || options.composite && options.configFilePath) {
@@ -19967,7 +19967,7 @@ function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
19967
19967
  /*projectReferences*/
19968
19968
  void 0,
19969
19969
  resolvedProjectReferences,
19970
- (resolvedRef, parent) => resolvedRef && cb(resolvedRef, parent)
19970
+ (resolvedRef) => resolvedRef && cb(resolvedRef)
19971
19971
  );
19972
19972
  }
19973
19973
  function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
@@ -33347,9 +33347,15 @@ var Parser;
33347
33347
  true
33348
33348
  );
33349
33349
  }
33350
+ function nextTokenIsEqualsOrSemicolonOrColonToken() {
33351
+ nextToken();
33352
+ return token() === 64 /* EqualsToken */ || token() === 27 /* SemicolonToken */ || token() === 59 /* ColonToken */;
33353
+ }
33350
33354
  function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) {
33351
33355
  nextToken();
33352
- if (disallowOf && token() === 165 /* OfKeyword */) return false;
33356
+ if (disallowOf && token() === 165 /* OfKeyword */) {
33357
+ return lookAhead(nextTokenIsEqualsOrSemicolonOrColonToken);
33358
+ }
33353
33359
  return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner.hasPrecedingLineBreak();
33354
33360
  }
33355
33361
  function isUsingDeclaration() {
@@ -45462,10 +45468,10 @@ function getNearestAncestorDirectoryWithPackageJson(host, fileName) {
45462
45468
  );
45463
45469
  }
45464
45470
  function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) {
45465
- var _a;
45471
+ var _a, _b;
45466
45472
  const getCanonicalFileName = hostGetCanonicalFileName(host);
45467
45473
  const cwd = host.getCurrentDirectory();
45468
- const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : void 0;
45474
+ const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? (_a = host.getRedirectFromSourceFile(importedFileName)) == null ? void 0 : _a.outputDts : void 0;
45469
45475
  const importedPath = toPath(importedFileName, cwd, getCanonicalFileName);
45470
45476
  const redirects = host.redirectTargetsMap.get(importedPath) || emptyArray;
45471
45477
  const importedFileNames = [...referenceRedirect ? [referenceRedirect] : emptyArray, importedFileName, ...redirects];
@@ -45475,7 +45481,7 @@ function forEachFileNameOfModule(importingFileName, importedFileName, host, pref
45475
45481
  const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb(p, referenceRedirect === p));
45476
45482
  if (result2) return result2;
45477
45483
  }
45478
- const symlinkedDirectories = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
45484
+ const symlinkedDirectories = (_b = host.getSymlinkCache) == null ? void 0 : _b.call(host).getSymlinkedDirectoriesByRealpath();
45479
45485
  const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd);
45480
45486
  const result = symlinkedDirectories && forEachAncestorDirectoryStoppingAtGlobalCache(
45481
45487
  host,
@@ -49222,7 +49228,7 @@ function createTypeChecker(host) {
49222
49228
  return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, !ignoreErrors ? moduleReferenceExpression : void 0, isForAugmentation) : void 0;
49223
49229
  }
49224
49230
  function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {
49225
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
49231
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
49226
49232
  if (errorNode && startsWith(moduleReference, "@types/")) {
49227
49233
  const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;
49228
49234
  const withoutAtTypePrefix = removePrefix(moduleReference, "@types/");
@@ -49281,7 +49287,7 @@ function createTypeChecker(host) {
49281
49287
  getAnyExtensionFromPath(moduleReference)
49282
49288
  );
49283
49289
  } else if (resolvedModule.resolvedUsingTsExtension && shouldRewrite) {
49284
- const redirect = host.getResolvedProjectReferenceToRedirect(sourceFile.path);
49290
+ const redirect = (_i = host.getRedirectFromSourceFile(sourceFile.path)) == null ? void 0 : _i.resolvedRef;
49285
49291
  if (redirect) {
49286
49292
  const ignoreCase = !host.useCaseSensitiveFileNames();
49287
49293
  const ownRootDir = host.getCommonSourceDirectory();
@@ -49321,7 +49327,7 @@ function createTypeChecker(host) {
49321
49327
  if (ext === ".ts" /* Ts */ || ext === ".js" /* Js */ || ext === ".tsx" /* Tsx */ || ext === ".jsx" /* Jsx */) {
49322
49328
  diagnosticDetails = createModeMismatchDetails(currentSourceFile);
49323
49329
  }
49324
- const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_i = overrideHost.importClause) == null ? void 0 : _i.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;
49330
+ const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_j = overrideHost.importClause) == null ? void 0 : _j.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;
49325
49331
  diagnostics.add(createDiagnosticForNodeFromMessageChain(
49326
49332
  getSourceFileOfNode(errorNode),
49327
49333
  errorNode,
@@ -49369,9 +49375,9 @@ function createTypeChecker(host) {
49369
49375
  }
49370
49376
  if (moduleNotFoundError) {
49371
49377
  if (resolvedModule) {
49372
- const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName);
49373
- if (redirect) {
49374
- error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName);
49378
+ const redirect = host.getRedirectFromSourceFile(resolvedModule.resolvedFileName);
49379
+ if (redirect == null ? void 0 : redirect.outputDts) {
49380
+ error(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect.outputDts, resolvedModule.resolvedFileName);
49375
49381
  return void 0;
49376
49382
  }
49377
49383
  }
@@ -49384,14 +49390,14 @@ function createTypeChecker(host) {
49384
49390
  error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference);
49385
49391
  } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) {
49386
49392
  const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path));
49387
- const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1];
49393
+ const suggestedExt = (_k = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _k[1];
49388
49394
  if (suggestedExt) {
49389
49395
  error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt);
49390
49396
  } else {
49391
49397
  error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path);
49392
49398
  }
49393
49399
  } else {
49394
- if ((_k = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _k.alternateResult) {
49400
+ if ((_l = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _l.alternateResult) {
49395
49401
  const errorInfo = createModuleNotFoundChain(currentSourceFile, host, moduleReference, mode, moduleReference);
49396
49402
  errorOrSuggestion(
49397
49403
  /*isError*/
@@ -80538,6 +80544,7 @@ function createTypeChecker(host) {
80538
80544
  return type;
80539
80545
  }
80540
80546
  function checkConstEnumAccess(node, type) {
80547
+ var _a;
80541
80548
  const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */;
80542
80549
  if (!ok) {
80543
80550
  error(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);
@@ -80555,7 +80562,7 @@ function createTypeChecker(host) {
80555
80562
  )) {
80556
80563
  Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */));
80557
80564
  const constEnumDeclaration = type.symbol.valueDeclaration;
80558
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
80565
+ const redirect = (_a = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _a.resolvedRef;
80559
80566
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node) && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
80560
80567
  error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
80561
80568
  }
@@ -85075,6 +85082,8 @@ function createTypeChecker(host) {
85075
85082
  function computeEnumMemberValue(member, autoValue, previous) {
85076
85083
  if (isComputedNonLiteralName(member.name)) {
85077
85084
  error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
85085
+ } else if (isBigIntLiteral(member.name)) {
85086
+ error(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
85078
85087
  } else {
85079
85088
  const text = getTextOfPropertyName(member.name);
85080
85089
  if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
@@ -85511,7 +85520,7 @@ function createTypeChecker(host) {
85511
85520
  }
85512
85521
  }
85513
85522
  function checkAliasSymbol(node) {
85514
- var _a, _b, _c, _d;
85523
+ var _a, _b, _c, _d, _e;
85515
85524
  let symbol = getSymbolOfDeclaration(node);
85516
85525
  const target = resolveAlias(symbol);
85517
85526
  if (target !== unknownSymbol) {
@@ -85605,7 +85614,7 @@ function createTypeChecker(host) {
85605
85614
  }
85606
85615
  if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */) && targetFlags & 128 /* ConstEnum */) {
85607
85616
  const constEnumDeclaration = target.valueDeclaration;
85608
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
85617
+ const redirect = (_e = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _e.resolvedRef;
85609
85618
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
85610
85619
  error(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
85611
85620
  }
@@ -89994,7 +90003,7 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) {
89994
90003
  },
89995
90004
  useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
89996
90005
  redirectTargetsMap: host.redirectTargetsMap,
89997
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
90006
+ getRedirectFromSourceFile: (fileName) => host.getRedirectFromSourceFile(fileName),
89998
90007
  isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
89999
90008
  fileExists: (fileName) => host.fileExists(fileName),
90000
90009
  getFileIncludeReasons: () => host.getFileIncludeReasons(),
@@ -121860,8 +121869,8 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121860
121869
  const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
121861
121870
  let resolvedProjectReferences;
121862
121871
  let projectReferenceRedirects;
121863
- let mapFromFileToProjectReferenceRedirects;
121864
- let mapFromToProjectReferenceRedirectSource;
121872
+ let mapSourceFileToResolvedRef;
121873
+ let mapOutputFileToResolvedRef;
121865
121874
  const useSourceOfProjectReferenceRedirect = !!((_d = host.useSourceOfProjectReferenceRedirect) == null ? void 0 : _d.call(host)) && !options.disableSourceOfProjectReferenceRedirect;
121866
121875
  const { onProgramCreateComplete, fileExists, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({
121867
121876
  compilerHost: host,
@@ -121869,7 +121878,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
121869
121878
  useSourceOfProjectReferenceRedirect,
121870
121879
  toPath: toPath3,
121871
121880
  getResolvedProjectReferences,
121872
- getSourceOfProjectReferenceRedirect,
121881
+ getRedirectFromOutput,
121873
121882
  forEachResolvedProjectReference: forEachResolvedProjectReference2
121874
121883
  });
121875
121884
  const readFile = host.readFile.bind(host);
@@ -122079,12 +122088,11 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122079
122088
  getConfigFileParsingDiagnostics: getConfigFileParsingDiagnostics2,
122080
122089
  getProjectReferences,
122081
122090
  getResolvedProjectReferences,
122082
- getProjectReferenceRedirect,
122083
- getResolvedProjectReferenceToRedirect,
122091
+ getRedirectFromSourceFile,
122084
122092
  getResolvedProjectReferenceByPath,
122085
122093
  forEachResolvedProjectReference: forEachResolvedProjectReference2,
122086
122094
  isSourceOfProjectReferenceRedirect,
122087
- getRedirectReferenceForResolutionFromSourceOfProject,
122095
+ getRedirectFromOutput,
122088
122096
  getCompilerOptionsForFile,
122089
122097
  getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2,
122090
122098
  getEmitModuleFormatOfFile,
@@ -122213,23 +122221,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122213
122221
  return result;
122214
122222
  }
122215
122223
  function getRedirectReferenceForResolution(file) {
122216
- const redirect = getResolvedProjectReferenceToRedirect(file.originalFileName);
122217
- if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect;
122218
- const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path);
122224
+ var _a2, _b2;
122225
+ const redirect = getRedirectFromSourceFile(file.originalFileName);
122226
+ if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect == null ? void 0 : redirect.resolvedRef;
122227
+ const resultFromDts = (_a2 = getRedirectFromOutput(file.path)) == null ? void 0 : _a2.resolvedRef;
122219
122228
  if (resultFromDts) return resultFromDts;
122220
122229
  if (!host.realpath || !options.preserveSymlinks || !file.originalFileName.includes(nodeModulesPathPart)) return void 0;
122221
122230
  const realDeclarationPath = toPath3(host.realpath(file.originalFileName));
122222
- return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath);
122223
- }
122224
- function getRedirectReferenceForResolutionFromSourceOfProject(filePath) {
122225
- const source = getSourceOfProjectReferenceRedirect(filePath);
122226
- if (isString(source)) return getResolvedProjectReferenceToRedirect(source);
122227
- if (!source) return void 0;
122228
- return forEachResolvedProjectReference2((resolvedRef) => {
122229
- const out = resolvedRef.commandLine.options.outFile;
122230
- if (!out) return void 0;
122231
- return toPath3(out) === filePath ? resolvedRef : void 0;
122232
- });
122231
+ return realDeclarationPath === file.path ? void 0 : (_b2 = getRedirectFromOutput(realDeclarationPath)) == null ? void 0 : _b2.resolvedRef;
122233
122232
  }
122234
122233
  function compareDefaultLibFiles(a, b) {
122235
122234
  return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b));
@@ -122601,8 +122600,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
122601
122600
  getSourceFileByPath: program.getSourceFileByPath,
122602
122601
  getSourceFiles: program.getSourceFiles,
122603
122602
  isSourceFileFromExternalLibrary,
122604
- getResolvedProjectReferenceToRedirect,
122605
- getProjectReferenceRedirect,
122603
+ getRedirectFromSourceFile,
122606
122604
  isSourceOfProjectReferenceRedirect,
122607
122605
  getSymlinkCache,
122608
122606
  writeFile: writeFileCallback || writeFile2,
@@ -123317,9 +123315,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123317
123315
  const sourceFile = getSourceFile2(fileName);
123318
123316
  if (fail) {
123319
123317
  if (!sourceFile) {
123320
- const redirect = getProjectReferenceRedirect(fileName);
123321
- if (redirect) {
123322
- fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, fileName);
123318
+ const redirect = getRedirectFromSourceFile(fileName);
123319
+ if (redirect == null ? void 0 : redirect.outputDts) {
123320
+ fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect.outputDts, fileName);
123323
123321
  } else {
123324
123322
  fail(Diagnostics.File_0_not_found, fileName);
123325
123323
  }
@@ -123405,16 +123403,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123405
123403
  return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode };
123406
123404
  }
123407
123405
  function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
123408
- var _a2;
123406
+ var _a2, _b2;
123409
123407
  const path = toPath3(fileName);
123410
123408
  if (useSourceOfProjectReferenceRedirect) {
123411
- let source = getSourceOfProjectReferenceRedirect(path);
123409
+ let source = getRedirectFromOutput(path);
123412
123410
  if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && fileName.includes(nodeModulesPathPart)) {
123413
123411
  const realPath2 = toPath3(host.realpath(fileName));
123414
- if (realPath2 !== path) source = getSourceOfProjectReferenceRedirect(realPath2);
123412
+ if (realPath2 !== path) source = getRedirectFromOutput(realPath2);
123415
123413
  }
123416
- if (source) {
123417
- const file2 = isString(source) ? findSourceFile(source, isDefaultLib, ignoreNoDefaultLib, reason, packageId) : void 0;
123414
+ if (source == null ? void 0 : source.source) {
123415
+ const file2 = findSourceFile(source.source, isDefaultLib, ignoreNoDefaultLib, reason, packageId);
123418
123416
  if (file2) addFileToFilesByName(
123419
123417
  file2,
123420
123418
  path,
@@ -123438,7 +123436,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123438
123436
  const checkedName = file2.fileName;
123439
123437
  const isRedirect = toPath3(checkedName) !== toPath3(fileName);
123440
123438
  if (isRedirect) {
123441
- fileName = getProjectReferenceRedirect(fileName) || fileName;
123439
+ fileName = ((_a2 = getRedirectFromSourceFile(fileName)) == null ? void 0 : _a2.outputDts) || fileName;
123442
123440
  }
123443
123441
  const checkedAbsolutePath = getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory);
123444
123442
  const inputAbsolutePath = getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory);
@@ -123467,14 +123465,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123467
123465
  }
123468
123466
  let redirectedPath;
123469
123467
  if (!useSourceOfProjectReferenceRedirect) {
123470
- const redirectProject = getProjectReferenceRedirectProject(fileName);
123471
- if (redirectProject) {
123472
- if (redirectProject.commandLine.options.outFile) {
123468
+ const redirectProject = getRedirectFromSourceFile(fileName);
123469
+ if (redirectProject == null ? void 0 : redirectProject.outputDts) {
123470
+ if (redirectProject.resolvedRef.commandLine.options.outFile) {
123473
123471
  return void 0;
123474
123472
  }
123475
- const redirect = getProjectReferenceOutputName(redirectProject, fileName);
123476
- fileName = redirect;
123477
- redirectedPath = toPath3(redirect);
123473
+ fileName = redirectProject.outputDts;
123474
+ redirectedPath = toPath3(redirectProject.outputDts);
123478
123475
  }
123479
123476
  }
123480
123477
  const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options);
@@ -123518,7 +123515,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123518
123515
  file.path = path;
123519
123516
  file.resolvedPath = toPath3(fileName);
123520
123517
  file.originalFileName = originalFileName;
123521
- file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0;
123518
+ file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0;
123522
123519
  file.packageJsonScope = sourceFileOptions.packageJsonScope;
123523
123520
  addFileIncludeReason(
123524
123521
  file,
@@ -123573,59 +123570,17 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123573
123570
  if (file !== void 0) missingFileNames.delete(path);
123574
123571
  else missingFileNames.set(path, fileName);
123575
123572
  }
123576
- function getProjectReferenceRedirect(fileName) {
123577
- const referencedProject = getProjectReferenceRedirectProject(fileName);
123578
- return referencedProject && getProjectReferenceOutputName(referencedProject, fileName);
123579
- }
123580
- function getProjectReferenceRedirectProject(fileName) {
123581
- if (!resolvedProjectReferences || !resolvedProjectReferences.length || isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */)) {
123582
- return void 0;
123583
- }
123584
- return getResolvedProjectReferenceToRedirect(fileName);
123585
- }
123586
- function getProjectReferenceOutputName(referencedProject, fileName) {
123587
- const out = referencedProject.commandLine.options.outFile;
123588
- return out ? changeExtension(out, ".d.ts" /* Dts */) : getOutputDeclarationFileName(fileName, referencedProject.commandLine, !host.useCaseSensitiveFileNames());
123589
- }
123590
- function getResolvedProjectReferenceToRedirect(fileName) {
123591
- if (mapFromFileToProjectReferenceRedirects === void 0) {
123592
- mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
123593
- forEachResolvedProjectReference2((referencedProject) => {
123594
- if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
123595
- referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
123596
- }
123597
- });
123598
- }
123599
- const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath3(fileName));
123600
- return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath);
123573
+ function getRedirectFromSourceFile(fileName) {
123574
+ return mapSourceFileToResolvedRef == null ? void 0 : mapSourceFileToResolvedRef.get(toPath3(fileName));
123601
123575
  }
123602
123576
  function forEachResolvedProjectReference2(cb) {
123603
123577
  return forEachResolvedProjectReference(resolvedProjectReferences, cb);
123604
123578
  }
123605
- function getSourceOfProjectReferenceRedirect(path) {
123606
- if (!isDeclarationFileName(path)) return void 0;
123607
- if (mapFromToProjectReferenceRedirectSource === void 0) {
123608
- mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
123609
- forEachResolvedProjectReference2((resolvedRef) => {
123610
- const out = resolvedRef.commandLine.options.outFile;
123611
- if (out) {
123612
- const outputDts = changeExtension(out, ".d.ts" /* Dts */);
123613
- mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), true);
123614
- } else {
123615
- const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
123616
- forEach(resolvedRef.commandLine.fileNames, (fileName) => {
123617
- if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) {
123618
- const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3);
123619
- mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), fileName);
123620
- }
123621
- });
123622
- }
123623
- });
123624
- }
123625
- return mapFromToProjectReferenceRedirectSource.get(path);
123579
+ function getRedirectFromOutput(path) {
123580
+ return mapOutputFileToResolvedRef == null ? void 0 : mapOutputFileToResolvedRef.get(path);
123626
123581
  }
123627
123582
  function isSourceOfProjectReferenceRedirect(fileName) {
123628
- return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName);
123583
+ return useSourceOfProjectReferenceRedirect && !!getRedirectFromSourceFile(fileName);
123629
123584
  }
123630
123585
  function getResolvedProjectReferenceByPath(projectReferencePath) {
123631
123586
  if (!projectReferenceRedirects) {
@@ -123793,7 +123748,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123793
123748
  continue;
123794
123749
  }
123795
123750
  const isFromNodeModulesSearch = resolution.isExternalLibraryImport;
123796
- const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName);
123751
+ const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getRedirectFromSourceFile(resolution.resolvedFileName);
123797
123752
  const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName));
123798
123753
  const resolvedFileName = resolution.resolvedFileName;
123799
123754
  if (isFromNodeModulesSearch) {
@@ -123903,6 +123858,30 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
123903
123858
  sourceFile.originalFileName = refPath;
123904
123859
  const resolvedRef = { commandLine, sourceFile };
123905
123860
  projectReferenceRedirects.set(sourceFilePath, resolvedRef);
123861
+ if (options.configFile !== sourceFile) {
123862
+ mapSourceFileToResolvedRef ?? (mapSourceFileToResolvedRef = /* @__PURE__ */ new Map());
123863
+ mapOutputFileToResolvedRef ?? (mapOutputFileToResolvedRef = /* @__PURE__ */ new Map());
123864
+ let outDts;
123865
+ if (commandLine.options.outFile) {
123866
+ outDts = changeExtension(commandLine.options.outFile, ".d.ts" /* Dts */);
123867
+ mapOutputFileToResolvedRef == null ? void 0 : mapOutputFileToResolvedRef.set(toPath3(outDts), { resolvedRef });
123868
+ }
123869
+ const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
123870
+ commandLine.fileNames.forEach((fileName) => {
123871
+ if (isDeclarationFileName(fileName)) return;
123872
+ const path = toPath3(fileName);
123873
+ let outputDts;
123874
+ if (!fileExtensionIs(fileName, ".json" /* Json */)) {
123875
+ if (!commandLine.options.outFile) {
123876
+ outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3);
123877
+ mapOutputFileToResolvedRef.set(toPath3(outputDts), { resolvedRef, source: fileName });
123878
+ } else {
123879
+ outputDts = outDts;
123880
+ }
123881
+ }
123882
+ mapSourceFileToResolvedRef.set(path, { resolvedRef, outputDts });
123883
+ });
123884
+ }
123906
123885
  if (commandLine.projectReferences) {
123907
123886
  resolvedRef.references = commandLine.projectReferences.map(parseProjectReferenceConfigFile);
123908
123887
  }
@@ -124623,8 +124602,8 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) {
124623
124602
  );
124624
124603
  }
124625
124604
  function fileExistsIfProjectReferenceDts(file) {
124626
- const source = host.getSourceOfProjectReferenceRedirect(host.toPath(file));
124627
- return source !== void 0 ? isString(source) ? originalFileExists.call(host.compilerHost, source) : true : void 0;
124605
+ const source = host.getRedirectFromOutput(host.toPath(file));
124606
+ return source !== void 0 ? isString(source.source) ? originalFileExists.call(host.compilerHost, source.source) : true : void 0;
124628
124607
  }
124629
124608
  function directoryExistsIfProjectReferenceDeclDir(dir) {
124630
124609
  const dirPath = host.toPath(dir);
@@ -125153,7 +125132,8 @@ var BuilderState;
125153
125132
  return symbol && getReferencedFilesFromImportedModuleSymbol(symbol);
125154
125133
  }
125155
125134
  function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) {
125156
- return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);
125135
+ var _a;
125136
+ return toPath(((_a = program.getRedirectFromSourceFile(fileName)) == null ? void 0 : _a.outputDts) || fileName, sourceFileDirectory, getCanonicalFileName);
125157
125137
  }
125158
125138
  function getReferencedFiles(program, sourceFile, getCanonicalFileName) {
125159
125139
  let referencedFiles;
@@ -127428,12 +127408,13 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127428
127408
  shouldRetryResolution,
127429
127409
  logChanges
127430
127410
  }) {
127411
+ var _a;
127431
127412
  const path = resolutionHost.toPath(containingFile);
127432
127413
  const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);
127433
127414
  const resolvedModules = [];
127434
127415
  const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
127435
127416
  const program = resolutionHost.getCurrentProgram();
127436
- const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
127417
+ const oldRedirect = program && ((_a = program.getRedirectFromSourceFile(containingFile)) == null ? void 0 : _a.resolvedRef);
127437
127418
  const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference;
127438
127419
  const seenNamesInFile = createModeAwareCache();
127439
127420
  for (const entry of entries) {
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Modifikátor abstract se může objevit jenom v deklaraci třídy, metody nebo vlastnosti.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Modifikátor accessor se může objevit jenom v deklaraci vlastnosti.",
2000
2000
  "and_here_6204": "a tady.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "Na argumenty nejde odkazovat v inicializátorech vlastností.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "Na „arguments“ nelze odkazovat v inicializátorech vlastností nebo statických inicializačních blocích třídy.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "auto: Považovat soubory s importy, exporty, import.meta, jsx (s jsx: react-jsx) nebo formátem esm (s modulem node16+) za moduly.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Výraz „await“ nelze použít uvnitř statického bloku třídy.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Výrazy await se tady povolují jen na nejvyšší úrovni souboru, když je daný soubor modul, ale tento soubor nemá žádné importy ani exporty. Zvažte možnost přidat export {}, aby se tento soubor převedl na modul.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Der Modifizierer \"abstract\" darf nur für eine Klassen-, Methoden- oder Eigenschaftendeklaration verwendet werden.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Der Accessormodifizierer kann nur in einer Eigenschaftendeklaration angezeigt werden.",
2000
2000
  "and_here_6204": "und hier.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "Auf \"arguments\" kann in Eigenschaftsinitialisierern nicht verwiesen werden.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "arguments kann in Eigenschaftsinitialisierern oder statischen Initialisierungsblöcken für Klassen nicht referenziert werden.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto“: Dateien mit imports, exports, import.meta, jsx (mit jsx: respond-jsx) oder esm-Format (mit module: node16+) als Module behandeln.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Der „await“-Ausdruck kann nicht innerhalb eines statischen Klassenblocks verwendet werden.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "await-Ausdrücke sind nur auf der obersten Ebene einer Datei zulässig, wenn diese Datei ein Modul ist. Diese Datei enthält jedoch keinerlei Importe oder Exporte. Erwägen Sie das Hinzufügen eines leeren \"export {}\", um diese Datei als Modul zu definieren.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "El modificador 'abstract' solo puede aparecer en una declaración de propiedad, clase o método.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "El modificador 'accessor' solo puede aparecer en una declaración de propiedad.",
2000
2000
  "and_here_6204": "y aquí.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "no se puede hacer referencia a «arguments» en los inicializadores de propiedad.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "No se puede hacer referencia a \"arguments\" en inicializadores de propiedades o en bloques de inicialización estática de clase.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trate los archivos con importaciones, exportaciones, import.meta, jsx (con jsx: react-jsx) o formato esm (con el módulo: node16+) como módulos.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "La expresión “await” no se puede usar dentro de un bloque estático de clase.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Las expresiones \"await\" solo se permiten en el nivel superior de un archivo cuando el archivo es un módulo, pero este archivo no tiene importaciones ni exportaciones. Considere la posibilidad de agregar un elemento \"export {}\" vacío para convertir este archivo en módulo.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Le modificateur 'abstract' peut apparaître uniquement dans une déclaration de classe, de méthode ou de propriété.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Le modificateur 'accessor' ne peut apparaître que sur une déclaration de propriété.",
2000
2000
  "and_here_6204": "et ici.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "Les « arguments » ne peuvent pas être référencés dans les initialiseurs de propriété.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "Les « arguments » ne peuvent pas être référencés dans les initialiseurs de propriétés ou les blocs d'initialisation statique de classe.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "« auto » : traitez les fichiers avec des importations, des exportations, import.meta, jsx (avec jsx: react-jsx) ou un format esm (avec module : node16+) en tant que modules.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "L’expression « await » à l’intérieur d’un bloc statique de classe.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Les expressions 'await' sont uniquement autorisées au niveau supérieur d'un fichier quand celui-ci est un module, mais le fichier actuel n'a pas d'importations ou d'exportations. Ajoutez un 'export {}' vide pour faire de ce fichier un module.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Il modificatore 'abstract' può essere incluso solo in una dichiarazione di classe, metodo o proprietà.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Il modificatore 'accessor' può essere visualizzato solo in una dichiarazione di proprietà.",
2000
2000
  "and_here_6204": "e in questo punto.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "impossibile fare riferimento agli 'argomenti' negli inizializzatori di proprietà.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "Non è possibile fare riferimento ad 'arguments' negli inizializzatori di proprietà o nei blocchi di inizializzazione statica delle classi.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": considera i file con importazioni, esportazioni, import.meta, jsx (con jsx: react-jsx) o il formato esm (con modulo: node16+) come moduli.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Non è possibile usare l'espressione 'await' all'interno di un blocco statico di classe.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Le espressioni 'await' sono consentite solo al primo livello di un file quando il file è un modulo, ma questo file non contiene importazioni o esportazioni. Provare ad aggiungere un elemento 'export {}' vuoto per trasformare il file in un modulo.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾子は、クラス宣言、メソッド宣言、またはプロパティ宣言のみに使用できます。",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 修飾子は、プロパティ宣言でのみ使用できます。",
2000
2000
  "and_here_6204": "およびここで。",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "プロパティ初期化子で 'arguments' を参照することはできません。",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "'arguments' は、プロパティ初期化子やクラスの静的初期化ブロック内では参照できません。",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": インポート、エクスポート、import.meta、jsx (jsx: react-jsx を使用)、または esm 形式 (モジュール: node16+) でファイルをモジュールとして扱います。",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 式はクラスの静的ブロック内では使用できません。",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "ファイルがモジュールの場合、'await' 式はそのファイルのトップ レベルでのみ使用できますが、このファイルにはインポートもエクスポートも含まれていません。空の 'export {}' を追加して、このファイルをモジュールにすることを検討してください。",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 한정자는 클래스, 메서드 또는 속성 선언에만 나타날 수 있습니다.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 한정자는 속성 선언에만 나타날 수 있습니다.",
2000
2000
  "and_here_6204": "및 여기.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "'arguments'는 속성 이니셜라이저에서 참조할 수 없습니다.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "'arguments'는 속성 초기화기나 클래스 정적 초기화 블록에서 참조할 수 없습니다.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 가져오기, 내보내기, import.meta, jsx(jsx: react-jsx 포함) 또는 esm 형식(모듈: node16+ 포함)이 있는 파일을 모듈로 처리합니다.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 식은 클래스 정적 블록 내에서 사용할 수 없습니다.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "'await' 식은 파일이 모듈일 경우 해당 파일의 최상위 수준에서만 사용할 수 있지만, 이 파일에는 가져오기 또는 내보내기가 없습니다. 빈 'export {}'를 추가하여 이 파일을 모듈로 만드는 것이 좋습니다.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Modyfikator „abstract” może być stosowany jedynie w przypadku deklaracji klasy, metody lub właściwości.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Modyfikator „accessor” może występować tylko w deklaracji właściwości.",
2000
2000
  "and_here_6204": "i tutaj.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "w inicjatorach właściwości nie można odwoływać się do \"arguments\".",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "Argumentów nie można odwoływać w inicjalizatorach właściwości ani w blokach inicjalizacji statycznej klasy.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto”: Traktuj pliki za pomocą importów, eksportów, import.meta, jsx (z jsx: react-jsx) lub formatu esm (z modułem: node16+) jako moduły.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Nie można użyć wyrażenia „await” wewnątrz bloku statycznego klasy.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Wyrażenia „await” na najwyższym poziomie pliku są dozwolone tylko wtedy, gdy plik jest modułem, ale ten plik nie ma żadnych importów ani eksportów. Rozważ dodanie pustego elementu „export {}”, aby ten plik był modułem.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "O modificador 'abstract' pode aparecer somente em uma declaração de classe, método ou propriedade.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "o modificador 'acessador' só pode aparecer em uma declaração de propriedade.",
2000
2000
  "and_here_6204": "e aqui.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "'argumentos' não podem ser referenciados em inicializadores de propriedade.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "\"arguments\" não podem ser referenciados em inicializadores de propriedade ou blocos de inicialização estática de classe.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": trata os arquivos com import, export, import.meta, jsx (com jsx: react-jsx) ou formato esm (com module: node16+) como módulos.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "A expressão 'await' não pode ser usada dentro de um bloco estático de classe.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "As expressões 'await' só são permitidas no nível superior de um arquivo quando esse arquivo é um módulo, mas não tem importações ou exportações. Considere adicionar um 'export {}' vazio para transformar este arquivo em um módulo.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Модификатор abstract может отображаться только в объявлении класса, метода или свойства.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Модификатор \"accessor\" может быть только в объявлении свойства.",
2000
2000
  "and_here_6204": "и здесь.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "Ссылка на \"arguments\" в инициализаторах свойств невозможна.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "Нельзя ссылаться на \"arguments\" в инициализаторах свойств и в статических блоках инициализации классов.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": обрабатывать файлы с импортом, экспортом, import.meta, jsx (с jsx: react-jsx) или форматом esm (с модулем: node16+) как файлы с модулями.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "Выражение \"await\" нельзя использовать внутри статического блока класса.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "Выражения \"await\" допускаются только на верхнем уровне файла, если он является модулем, но не имеет импортов и экспортов. Рекомендуется добавить пустой элемент \"export {}\", чтобы сделать этот файл модулем.",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' değiştiricisi yalnızca sınıf, metot veya özellik bildiriminde görünebilir.",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' değiştiricisi yalnızca özellik bildiriminde görünebilir.",
2000
2000
  "and_here_6204": "ve buraya.",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "Özellik başlatıcılarda 'arguments' öğesine başvurulamaz.",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "'arguments' özellik başlatıcılarında veya sınıf statik başlatma bloklarında kullanılamaz.",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": İçe aktarma, dışa aktarma, import.meta, jsx (jsx: react-jsx ile) veya esm biçimi (modül: node16+ ile) içeren dosyaları modül olarak ele alın.",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "‘await’ ifadesi bir sınıf statik bloğu içinde kullanılamaz.",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "'await' ifadelerine yalnızca dosya bir modül olduğunda dosyanın en üst düzeyinde izin verilir ancak bu dosyanın içeri veya dışarı aktarma işlemi yok. Bu dosyayı modül yapmak için boş bir 'export {}' eklemeyi deneyin.",
package/lib/typescript.js CHANGED
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
2286
2286
 
2287
2287
  // src/compiler/corePublic.ts
2288
2288
  var versionMajorMinor = "5.9";
2289
- var version = `${versionMajorMinor}.0-dev.20250604`;
2289
+ var version = `${versionMajorMinor}.0-dev.20250606`;
2290
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2291
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2292
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -20350,7 +20350,7 @@ function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
20350
20350
  if (forceDtsEmit) return true;
20351
20351
  if (host.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) return false;
20352
20352
  if (!isJsonSourceFile(sourceFile)) return true;
20353
- if (host.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) return false;
20353
+ if (host.getRedirectFromSourceFile(sourceFile.fileName)) return false;
20354
20354
  if (options.outFile) return true;
20355
20355
  if (!options.outDir) return false;
20356
20356
  if (options.rootDir || options.composite && options.configFilePath) {
@@ -24065,7 +24065,7 @@ function forEachResolvedProjectReference(resolvedProjectReferences, cb) {
24065
24065
  /*projectReferences*/
24066
24066
  void 0,
24067
24067
  resolvedProjectReferences,
24068
- (resolvedRef, parent2) => resolvedRef && cb(resolvedRef, parent2)
24068
+ (resolvedRef) => resolvedRef && cb(resolvedRef)
24069
24069
  );
24070
24070
  }
24071
24071
  function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {
@@ -37609,9 +37609,15 @@ var Parser;
37609
37609
  true
37610
37610
  );
37611
37611
  }
37612
+ function nextTokenIsEqualsOrSemicolonOrColonToken() {
37613
+ nextToken();
37614
+ return token() === 64 /* EqualsToken */ || token() === 27 /* SemicolonToken */ || token() === 59 /* ColonToken */;
37615
+ }
37612
37616
  function nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine(disallowOf) {
37613
37617
  nextToken();
37614
- if (disallowOf && token() === 165 /* OfKeyword */) return false;
37618
+ if (disallowOf && token() === 165 /* OfKeyword */) {
37619
+ return lookAhead(nextTokenIsEqualsOrSemicolonOrColonToken);
37620
+ }
37615
37621
  return (isBindingIdentifier() || token() === 19 /* OpenBraceToken */) && !scanner2.hasPrecedingLineBreak();
37616
37622
  }
37617
37623
  function isUsingDeclaration() {
@@ -50059,10 +50065,10 @@ function getNearestAncestorDirectoryWithPackageJson(host, fileName) {
50059
50065
  );
50060
50066
  }
50061
50067
  function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) {
50062
- var _a;
50068
+ var _a, _b;
50063
50069
  const getCanonicalFileName = hostGetCanonicalFileName(host);
50064
50070
  const cwd = host.getCurrentDirectory();
50065
- const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : void 0;
50071
+ const referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? (_a = host.getRedirectFromSourceFile(importedFileName)) == null ? void 0 : _a.outputDts : void 0;
50066
50072
  const importedPath = toPath(importedFileName, cwd, getCanonicalFileName);
50067
50073
  const redirects = host.redirectTargetsMap.get(importedPath) || emptyArray;
50068
50074
  const importedFileNames = [...referenceRedirect ? [referenceRedirect] : emptyArray, importedFileName, ...redirects];
@@ -50072,7 +50078,7 @@ function forEachFileNameOfModule(importingFileName, importedFileName, host, pref
50072
50078
  const result2 = forEach(targets, (p) => !(shouldFilterIgnoredPaths && containsIgnoredPath(p)) && cb(p, referenceRedirect === p));
50073
50079
  if (result2) return result2;
50074
50080
  }
50075
- const symlinkedDirectories = (_a = host.getSymlinkCache) == null ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();
50081
+ const symlinkedDirectories = (_b = host.getSymlinkCache) == null ? void 0 : _b.call(host).getSymlinkedDirectoriesByRealpath();
50076
50082
  const fullImportedFileName = getNormalizedAbsolutePath(importedFileName, cwd);
50077
50083
  const result = symlinkedDirectories && forEachAncestorDirectoryStoppingAtGlobalCache(
50078
50084
  host,
@@ -53834,7 +53840,7 @@ function createTypeChecker(host) {
53834
53840
  return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, !ignoreErrors ? moduleReferenceExpression : void 0, isForAugmentation) : void 0;
53835
53841
  }
53836
53842
  function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {
53837
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
53843
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
53838
53844
  if (errorNode && startsWith(moduleReference, "@types/")) {
53839
53845
  const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;
53840
53846
  const withoutAtTypePrefix = removePrefix(moduleReference, "@types/");
@@ -53893,7 +53899,7 @@ function createTypeChecker(host) {
53893
53899
  getAnyExtensionFromPath(moduleReference)
53894
53900
  );
53895
53901
  } else if (resolvedModule.resolvedUsingTsExtension && shouldRewrite) {
53896
- const redirect = host.getResolvedProjectReferenceToRedirect(sourceFile.path);
53902
+ const redirect = (_i = host.getRedirectFromSourceFile(sourceFile.path)) == null ? void 0 : _i.resolvedRef;
53897
53903
  if (redirect) {
53898
53904
  const ignoreCase = !host.useCaseSensitiveFileNames();
53899
53905
  const ownRootDir = host.getCommonSourceDirectory();
@@ -53933,7 +53939,7 @@ function createTypeChecker(host) {
53933
53939
  if (ext === ".ts" /* Ts */ || ext === ".js" /* Js */ || ext === ".tsx" /* Tsx */ || ext === ".jsx" /* Jsx */) {
53934
53940
  diagnosticDetails = createModeMismatchDetails(currentSourceFile);
53935
53941
  }
53936
- const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_i = overrideHost.importClause) == null ? void 0 : _i.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;
53942
+ const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_j = overrideHost.importClause) == null ? void 0 : _j.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;
53937
53943
  diagnostics.add(createDiagnosticForNodeFromMessageChain(
53938
53944
  getSourceFileOfNode(errorNode),
53939
53945
  errorNode,
@@ -53981,9 +53987,9 @@ function createTypeChecker(host) {
53981
53987
  }
53982
53988
  if (moduleNotFoundError) {
53983
53989
  if (resolvedModule) {
53984
- const redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName);
53985
- if (redirect) {
53986
- error2(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName);
53990
+ const redirect = host.getRedirectFromSourceFile(resolvedModule.resolvedFileName);
53991
+ if (redirect == null ? void 0 : redirect.outputDts) {
53992
+ error2(errorNode, Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect.outputDts, resolvedModule.resolvedFileName);
53987
53993
  return void 0;
53988
53994
  }
53989
53995
  }
@@ -53996,14 +54002,14 @@ function createTypeChecker(host) {
53996
54002
  error2(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference);
53997
54003
  } else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) {
53998
54004
  const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path));
53999
- const suggestedExt = (_j = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _j[1];
54005
+ const suggestedExt = (_k = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _k[1];
54000
54006
  if (suggestedExt) {
54001
54007
  error2(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt);
54002
54008
  } else {
54003
54009
  error2(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path);
54004
54010
  }
54005
54011
  } else {
54006
- if ((_k = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _k.alternateResult) {
54012
+ if ((_l = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _l.alternateResult) {
54007
54013
  const errorInfo = createModuleNotFoundChain(currentSourceFile, host, moduleReference, mode, moduleReference);
54008
54014
  errorOrSuggestion(
54009
54015
  /*isError*/
@@ -85150,6 +85156,7 @@ function createTypeChecker(host) {
85150
85156
  return type;
85151
85157
  }
85152
85158
  function checkConstEnumAccess(node, type) {
85159
+ var _a;
85153
85160
  const ok = node.parent.kind === 211 /* PropertyAccessExpression */ && node.parent.expression === node || node.parent.kind === 212 /* ElementAccessExpression */ && node.parent.expression === node || ((node.kind === 80 /* Identifier */ || node.kind === 166 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) || node.parent.kind === 186 /* TypeQuery */ && node.parent.exprName === node) || node.parent.kind === 281 /* ExportSpecifier */;
85154
85161
  if (!ok) {
85155
85162
  error2(node, Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);
@@ -85167,7 +85174,7 @@ function createTypeChecker(host) {
85167
85174
  )) {
85168
85175
  Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */));
85169
85176
  const constEnumDeclaration = type.symbol.valueDeclaration;
85170
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
85177
+ const redirect = (_a = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _a.resolvedRef;
85171
85178
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && !isValidTypeOnlyAliasUseSite(node) && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
85172
85179
  error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
85173
85180
  }
@@ -89687,6 +89694,8 @@ function createTypeChecker(host) {
89687
89694
  function computeEnumMemberValue(member, autoValue, previous) {
89688
89695
  if (isComputedNonLiteralName(member.name)) {
89689
89696
  error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
89697
+ } else if (isBigIntLiteral(member.name)) {
89698
+ error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
89690
89699
  } else {
89691
89700
  const text = getTextOfPropertyName(member.name);
89692
89701
  if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
@@ -90123,7 +90132,7 @@ function createTypeChecker(host) {
90123
90132
  }
90124
90133
  }
90125
90134
  function checkAliasSymbol(node) {
90126
- var _a, _b, _c, _d;
90135
+ var _a, _b, _c, _d, _e;
90127
90136
  let symbol = getSymbolOfDeclaration(node);
90128
90137
  const target = resolveAlias(symbol);
90129
90138
  if (target !== unknownSymbol) {
@@ -90217,7 +90226,7 @@ function createTypeChecker(host) {
90217
90226
  }
90218
90227
  if (compilerOptions.verbatimModuleSyntax && !isTypeOnlyImportOrExportDeclaration(node) && !(node.flags & 33554432 /* Ambient */) && targetFlags & 128 /* ConstEnum */) {
90219
90228
  const constEnumDeclaration = target.valueDeclaration;
90220
- const redirect = host.getRedirectReferenceForResolutionFromSourceOfProject(getSourceFileOfNode(constEnumDeclaration).resolvedPath);
90229
+ const redirect = (_e = host.getRedirectFromOutput(getSourceFileOfNode(constEnumDeclaration).resolvedPath)) == null ? void 0 : _e.resolvedRef;
90221
90230
  if (constEnumDeclaration.flags & 33554432 /* Ambient */ && (!redirect || !shouldPreserveConstEnums(redirect.commandLine.options))) {
90222
90231
  error2(node, Diagnostics.Cannot_access_ambient_const_enums_when_0_is_enabled, isolatedModulesLikeFlagName);
90223
90232
  }
@@ -94606,7 +94615,7 @@ function createBasicNodeBuilderModuleSpecifierResolutionHost(host) {
94606
94615
  },
94607
94616
  useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
94608
94617
  redirectTargetsMap: host.redirectTargetsMap,
94609
- getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
94618
+ getRedirectFromSourceFile: (fileName) => host.getRedirectFromSourceFile(fileName),
94610
94619
  isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
94611
94620
  fileExists: (fileName) => host.fileExists(fileName),
94612
94621
  getFileIncludeReasons: () => host.getFileIncludeReasons(),
@@ -126711,8 +126720,8 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
126711
126720
  const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
126712
126721
  let resolvedProjectReferences;
126713
126722
  let projectReferenceRedirects;
126714
- let mapFromFileToProjectReferenceRedirects;
126715
- let mapFromToProjectReferenceRedirectSource;
126723
+ let mapSourceFileToResolvedRef;
126724
+ let mapOutputFileToResolvedRef;
126716
126725
  const useSourceOfProjectReferenceRedirect = !!((_d = host.useSourceOfProjectReferenceRedirect) == null ? void 0 : _d.call(host)) && !options.disableSourceOfProjectReferenceRedirect;
126717
126726
  const { onProgramCreateComplete, fileExists, directoryExists } = updateHostForUseSourceOfProjectReferenceRedirect({
126718
126727
  compilerHost: host,
@@ -126720,7 +126729,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
126720
126729
  useSourceOfProjectReferenceRedirect,
126721
126730
  toPath: toPath3,
126722
126731
  getResolvedProjectReferences,
126723
- getSourceOfProjectReferenceRedirect,
126732
+ getRedirectFromOutput,
126724
126733
  forEachResolvedProjectReference: forEachResolvedProjectReference2
126725
126734
  });
126726
126735
  const readFile = host.readFile.bind(host);
@@ -126930,12 +126939,11 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
126930
126939
  getConfigFileParsingDiagnostics: getConfigFileParsingDiagnostics2,
126931
126940
  getProjectReferences,
126932
126941
  getResolvedProjectReferences,
126933
- getProjectReferenceRedirect,
126934
- getResolvedProjectReferenceToRedirect,
126942
+ getRedirectFromSourceFile,
126935
126943
  getResolvedProjectReferenceByPath,
126936
126944
  forEachResolvedProjectReference: forEachResolvedProjectReference2,
126937
126945
  isSourceOfProjectReferenceRedirect,
126938
- getRedirectReferenceForResolutionFromSourceOfProject,
126946
+ getRedirectFromOutput,
126939
126947
  getCompilerOptionsForFile,
126940
126948
  getDefaultResolutionModeForFile: getDefaultResolutionModeForFile2,
126941
126949
  getEmitModuleFormatOfFile: getEmitModuleFormatOfFile2,
@@ -127064,23 +127072,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
127064
127072
  return result;
127065
127073
  }
127066
127074
  function getRedirectReferenceForResolution(file) {
127067
- const redirect = getResolvedProjectReferenceToRedirect(file.originalFileName);
127068
- if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect;
127069
- const resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.path);
127075
+ var _a2, _b2;
127076
+ const redirect = getRedirectFromSourceFile(file.originalFileName);
127077
+ if (redirect || !isDeclarationFileName(file.originalFileName)) return redirect == null ? void 0 : redirect.resolvedRef;
127078
+ const resultFromDts = (_a2 = getRedirectFromOutput(file.path)) == null ? void 0 : _a2.resolvedRef;
127070
127079
  if (resultFromDts) return resultFromDts;
127071
127080
  if (!host.realpath || !options.preserveSymlinks || !file.originalFileName.includes(nodeModulesPathPart)) return void 0;
127072
127081
  const realDeclarationPath = toPath3(host.realpath(file.originalFileName));
127073
- return realDeclarationPath === file.path ? void 0 : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationPath);
127074
- }
127075
- function getRedirectReferenceForResolutionFromSourceOfProject(filePath) {
127076
- const source = getSourceOfProjectReferenceRedirect(filePath);
127077
- if (isString(source)) return getResolvedProjectReferenceToRedirect(source);
127078
- if (!source) return void 0;
127079
- return forEachResolvedProjectReference2((resolvedRef) => {
127080
- const out = resolvedRef.commandLine.options.outFile;
127081
- if (!out) return void 0;
127082
- return toPath3(out) === filePath ? resolvedRef : void 0;
127083
- });
127082
+ return realDeclarationPath === file.path ? void 0 : (_b2 = getRedirectFromOutput(realDeclarationPath)) == null ? void 0 : _b2.resolvedRef;
127084
127083
  }
127085
127084
  function compareDefaultLibFiles(a, b) {
127086
127085
  return compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b));
@@ -127452,8 +127451,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
127452
127451
  getSourceFileByPath: program.getSourceFileByPath,
127453
127452
  getSourceFiles: program.getSourceFiles,
127454
127453
  isSourceFileFromExternalLibrary,
127455
- getResolvedProjectReferenceToRedirect,
127456
- getProjectReferenceRedirect,
127454
+ getRedirectFromSourceFile,
127457
127455
  isSourceOfProjectReferenceRedirect,
127458
127456
  getSymlinkCache,
127459
127457
  writeFile: writeFileCallback || writeFile2,
@@ -128168,9 +128166,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128168
128166
  const sourceFile = getSourceFile2(fileName);
128169
128167
  if (fail) {
128170
128168
  if (!sourceFile) {
128171
- const redirect = getProjectReferenceRedirect(fileName);
128172
- if (redirect) {
128173
- fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, fileName);
128169
+ const redirect = getRedirectFromSourceFile(fileName);
128170
+ if (redirect == null ? void 0 : redirect.outputDts) {
128171
+ fail(Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect.outputDts, fileName);
128174
128172
  } else {
128175
128173
  fail(Diagnostics.File_0_not_found, fileName);
128176
128174
  }
@@ -128256,16 +128254,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128256
128254
  return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode };
128257
128255
  }
128258
128256
  function findSourceFileWorker(fileName, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {
128259
- var _a2;
128257
+ var _a2, _b2;
128260
128258
  const path = toPath3(fileName);
128261
128259
  if (useSourceOfProjectReferenceRedirect) {
128262
- let source = getSourceOfProjectReferenceRedirect(path);
128260
+ let source = getRedirectFromOutput(path);
128263
128261
  if (!source && host.realpath && options.preserveSymlinks && isDeclarationFileName(fileName) && fileName.includes(nodeModulesPathPart)) {
128264
128262
  const realPath2 = toPath3(host.realpath(fileName));
128265
- if (realPath2 !== path) source = getSourceOfProjectReferenceRedirect(realPath2);
128263
+ if (realPath2 !== path) source = getRedirectFromOutput(realPath2);
128266
128264
  }
128267
- if (source) {
128268
- const file2 = isString(source) ? findSourceFile(source, isDefaultLib, ignoreNoDefaultLib, reason, packageId) : void 0;
128265
+ if (source == null ? void 0 : source.source) {
128266
+ const file2 = findSourceFile(source.source, isDefaultLib, ignoreNoDefaultLib, reason, packageId);
128269
128267
  if (file2) addFileToFilesByName(
128270
128268
  file2,
128271
128269
  path,
@@ -128289,7 +128287,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128289
128287
  const checkedName = file2.fileName;
128290
128288
  const isRedirect = toPath3(checkedName) !== toPath3(fileName);
128291
128289
  if (isRedirect) {
128292
- fileName = getProjectReferenceRedirect(fileName) || fileName;
128290
+ fileName = ((_a2 = getRedirectFromSourceFile(fileName)) == null ? void 0 : _a2.outputDts) || fileName;
128293
128291
  }
128294
128292
  const checkedAbsolutePath = getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory);
128295
128293
  const inputAbsolutePath = getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory);
@@ -128318,14 +128316,13 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128318
128316
  }
128319
128317
  let redirectedPath;
128320
128318
  if (!useSourceOfProjectReferenceRedirect) {
128321
- const redirectProject = getProjectReferenceRedirectProject(fileName);
128322
- if (redirectProject) {
128323
- if (redirectProject.commandLine.options.outFile) {
128319
+ const redirectProject = getRedirectFromSourceFile(fileName);
128320
+ if (redirectProject == null ? void 0 : redirectProject.outputDts) {
128321
+ if (redirectProject.resolvedRef.commandLine.options.outFile) {
128324
128322
  return void 0;
128325
128323
  }
128326
- const redirect = getProjectReferenceOutputName(redirectProject, fileName);
128327
- fileName = redirect;
128328
- redirectedPath = toPath3(redirect);
128324
+ fileName = redirectProject.outputDts;
128325
+ redirectedPath = toPath3(redirectProject.outputDts);
128329
128326
  }
128330
128327
  }
128331
128328
  const sourceFileOptions = getCreateSourceFileOptions(fileName, moduleResolutionCache, host, options);
@@ -128369,7 +128366,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128369
128366
  file.path = path;
128370
128367
  file.resolvedPath = toPath3(fileName);
128371
128368
  file.originalFileName = originalFileName;
128372
- file.packageJsonLocations = ((_a2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _a2.length) ? sourceFileOptions.packageJsonLocations : void 0;
128369
+ file.packageJsonLocations = ((_b2 = sourceFileOptions.packageJsonLocations) == null ? void 0 : _b2.length) ? sourceFileOptions.packageJsonLocations : void 0;
128373
128370
  file.packageJsonScope = sourceFileOptions.packageJsonScope;
128374
128371
  addFileIncludeReason(
128375
128372
  file,
@@ -128424,59 +128421,17 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128424
128421
  if (file !== void 0) missingFileNames.delete(path);
128425
128422
  else missingFileNames.set(path, fileName);
128426
128423
  }
128427
- function getProjectReferenceRedirect(fileName) {
128428
- const referencedProject = getProjectReferenceRedirectProject(fileName);
128429
- return referencedProject && getProjectReferenceOutputName(referencedProject, fileName);
128430
- }
128431
- function getProjectReferenceRedirectProject(fileName) {
128432
- if (!resolvedProjectReferences || !resolvedProjectReferences.length || isDeclarationFileName(fileName) || fileExtensionIs(fileName, ".json" /* Json */)) {
128433
- return void 0;
128434
- }
128435
- return getResolvedProjectReferenceToRedirect(fileName);
128436
- }
128437
- function getProjectReferenceOutputName(referencedProject, fileName) {
128438
- const out = referencedProject.commandLine.options.outFile;
128439
- return out ? changeExtension(out, ".d.ts" /* Dts */) : getOutputDeclarationFileName(fileName, referencedProject.commandLine, !host.useCaseSensitiveFileNames());
128440
- }
128441
- function getResolvedProjectReferenceToRedirect(fileName) {
128442
- if (mapFromFileToProjectReferenceRedirects === void 0) {
128443
- mapFromFileToProjectReferenceRedirects = /* @__PURE__ */ new Map();
128444
- forEachResolvedProjectReference2((referencedProject) => {
128445
- if (toPath3(options.configFilePath) !== referencedProject.sourceFile.path) {
128446
- referencedProject.commandLine.fileNames.forEach((f) => mapFromFileToProjectReferenceRedirects.set(toPath3(f), referencedProject.sourceFile.path));
128447
- }
128448
- });
128449
- }
128450
- const referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath3(fileName));
128451
- return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath);
128424
+ function getRedirectFromSourceFile(fileName) {
128425
+ return mapSourceFileToResolvedRef == null ? void 0 : mapSourceFileToResolvedRef.get(toPath3(fileName));
128452
128426
  }
128453
128427
  function forEachResolvedProjectReference2(cb) {
128454
128428
  return forEachResolvedProjectReference(resolvedProjectReferences, cb);
128455
128429
  }
128456
- function getSourceOfProjectReferenceRedirect(path) {
128457
- if (!isDeclarationFileName(path)) return void 0;
128458
- if (mapFromToProjectReferenceRedirectSource === void 0) {
128459
- mapFromToProjectReferenceRedirectSource = /* @__PURE__ */ new Map();
128460
- forEachResolvedProjectReference2((resolvedRef) => {
128461
- const out = resolvedRef.commandLine.options.outFile;
128462
- if (out) {
128463
- const outputDts = changeExtension(out, ".d.ts" /* Dts */);
128464
- mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), true);
128465
- } else {
128466
- const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
128467
- forEach(resolvedRef.commandLine.fileNames, (fileName) => {
128468
- if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) {
128469
- const outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3);
128470
- mapFromToProjectReferenceRedirectSource.set(toPath3(outputDts), fileName);
128471
- }
128472
- });
128473
- }
128474
- });
128475
- }
128476
- return mapFromToProjectReferenceRedirectSource.get(path);
128430
+ function getRedirectFromOutput(path) {
128431
+ return mapOutputFileToResolvedRef == null ? void 0 : mapOutputFileToResolvedRef.get(path);
128477
128432
  }
128478
128433
  function isSourceOfProjectReferenceRedirect(fileName) {
128479
- return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName);
128434
+ return useSourceOfProjectReferenceRedirect && !!getRedirectFromSourceFile(fileName);
128480
128435
  }
128481
128436
  function getResolvedProjectReferenceByPath(projectReferencePath) {
128482
128437
  if (!projectReferenceRedirects) {
@@ -128644,7 +128599,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128644
128599
  continue;
128645
128600
  }
128646
128601
  const isFromNodeModulesSearch = resolution.isExternalLibraryImport;
128647
- const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getProjectReferenceRedirectProject(resolution.resolvedFileName);
128602
+ const isJsFile = !resolutionExtensionIsTSOrJson(resolution.extension) && !getRedirectFromSourceFile(resolution.resolvedFileName);
128648
128603
  const isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile && (!resolution.originalPath || pathContainsNodeModules(resolution.resolvedFileName));
128649
128604
  const resolvedFileName = resolution.resolvedFileName;
128650
128605
  if (isFromNodeModulesSearch) {
@@ -128754,6 +128709,30 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
128754
128709
  sourceFile.originalFileName = refPath;
128755
128710
  const resolvedRef = { commandLine, sourceFile };
128756
128711
  projectReferenceRedirects.set(sourceFilePath, resolvedRef);
128712
+ if (options.configFile !== sourceFile) {
128713
+ mapSourceFileToResolvedRef ?? (mapSourceFileToResolvedRef = /* @__PURE__ */ new Map());
128714
+ mapOutputFileToResolvedRef ?? (mapOutputFileToResolvedRef = /* @__PURE__ */ new Map());
128715
+ let outDts;
128716
+ if (commandLine.options.outFile) {
128717
+ outDts = changeExtension(commandLine.options.outFile, ".d.ts" /* Dts */);
128718
+ mapOutputFileToResolvedRef == null ? void 0 : mapOutputFileToResolvedRef.set(toPath3(outDts), { resolvedRef });
128719
+ }
128720
+ const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
128721
+ commandLine.fileNames.forEach((fileName) => {
128722
+ if (isDeclarationFileName(fileName)) return;
128723
+ const path = toPath3(fileName);
128724
+ let outputDts;
128725
+ if (!fileExtensionIs(fileName, ".json" /* Json */)) {
128726
+ if (!commandLine.options.outFile) {
128727
+ outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3);
128728
+ mapOutputFileToResolvedRef.set(toPath3(outputDts), { resolvedRef, source: fileName });
128729
+ } else {
128730
+ outputDts = outDts;
128731
+ }
128732
+ }
128733
+ mapSourceFileToResolvedRef.set(path, { resolvedRef, outputDts });
128734
+ });
128735
+ }
128757
128736
  if (commandLine.projectReferences) {
128758
128737
  resolvedRef.references = commandLine.projectReferences.map(parseProjectReferenceConfigFile);
128759
128738
  }
@@ -129474,8 +129453,8 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) {
129474
129453
  );
129475
129454
  }
129476
129455
  function fileExistsIfProjectReferenceDts(file) {
129477
- const source = host.getSourceOfProjectReferenceRedirect(host.toPath(file));
129478
- return source !== void 0 ? isString(source) ? originalFileExists.call(host.compilerHost, source) : true : void 0;
129456
+ const source = host.getRedirectFromOutput(host.toPath(file));
129457
+ return source !== void 0 ? isString(source.source) ? originalFileExists.call(host.compilerHost, source.source) : true : void 0;
129479
129458
  }
129480
129459
  function directoryExistsIfProjectReferenceDeclDir(dir) {
129481
129460
  const dirPath = host.toPath(dir);
@@ -130018,7 +129997,8 @@ var BuilderState;
130018
129997
  return symbol && getReferencedFilesFromImportedModuleSymbol(symbol);
130019
129998
  }
130020
129999
  function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) {
130021
- return toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);
130000
+ var _a;
130001
+ return toPath(((_a = program.getRedirectFromSourceFile(fileName)) == null ? void 0 : _a.outputDts) || fileName, sourceFileDirectory, getCanonicalFileName);
130022
130002
  }
130023
130003
  function getReferencedFiles(program, sourceFile, getCanonicalFileName) {
130024
130004
  let referencedFiles;
@@ -132340,12 +132320,13 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
132340
132320
  shouldRetryResolution,
132341
132321
  logChanges
132342
132322
  }) {
132323
+ var _a;
132343
132324
  const path = resolutionHost.toPath(containingFile);
132344
132325
  const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);
132345
132326
  const resolvedModules = [];
132346
132327
  const hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);
132347
132328
  const program = resolutionHost.getCurrentProgram();
132348
- const oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);
132329
+ const oldRedirect = program && ((_a = program.getRedirectFromSourceFile(containingFile)) == null ? void 0 : _a.resolvedRef);
132349
132330
  const unmatchedRedirects = oldRedirect ? !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path : !!redirectedReference;
132350
132331
  const seenNamesInFile = createModeAwareCache();
132351
132332
  for (const entry of entries) {
@@ -140492,7 +140473,7 @@ function createModuleSpecifierResolutionHost(program, host) {
140492
140473
  },
140493
140474
  getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation),
140494
140475
  redirectTargetsMap: program.redirectTargetsMap,
140495
- getProjectReferenceRedirect: (fileName) => program.getProjectReferenceRedirect(fileName),
140476
+ getRedirectFromSourceFile: (fileName) => program.getRedirectFromSourceFile(fileName),
140496
140477
  isSourceOfProjectReferenceRedirect: (fileName) => program.isSourceOfProjectReferenceRedirect(fileName),
140497
140478
  getNearestAncestorDirectoryWithPackageJson: maybeBind(host, host.getNearestAncestorDirectoryWithPackageJson),
140498
140479
  getFileIncludeReasons: () => program.getFileIncludeReasons(),
@@ -186873,7 +186854,7 @@ var Project2 = class _Project {
186873
186854
  this.projectService.onProjectCreation(this);
186874
186855
  }
186875
186856
  /** @internal */
186876
- getResolvedProjectReferenceToRedirect(_fileName) {
186857
+ getRedirectFromSourceFile(_fileName) {
186877
186858
  return void 0;
186878
186859
  }
186879
186860
  isNonTsProject() {
@@ -188922,9 +188903,9 @@ var ConfiguredProject2 = class extends Project2 {
188922
188903
  (this.potentialProjectReferences || (this.potentialProjectReferences = /* @__PURE__ */ new Set())).add(canonicalConfigPath);
188923
188904
  }
188924
188905
  /** @internal */
188925
- getResolvedProjectReferenceToRedirect(fileName) {
188906
+ getRedirectFromSourceFile(fileName) {
188926
188907
  const program = this.getCurrentProgram();
188927
- return program && program.getResolvedProjectReferenceToRedirect(fileName);
188908
+ return program && program.getRedirectFromSourceFile(fileName);
188928
188909
  }
188929
188910
  /** @internal */
188930
188911
  forEachResolvedProjectReference(cb) {
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "\"abstract\" 修饰符仅可出现在类、方法或属性声明中。",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "\"accessor\" 修饰符只能出现在属性声明中。",
2000
2000
  "and_here_6204": "并在这里。",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "无法在属性初始化表达式中引用 \"arguments\"。",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "无法在属性初始值设定项或类静态初始化块中引用 'arguments'。",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "“auto”: 将带有导入、导出、import.meta、jsx (带有 jsx: react-jsx)或 esm 格式(带模块: node16+)的文件视为模块。",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "\"await\" 表达式不能在类静态块内使用。",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "仅当文件是模块时,才允许在该文件的顶层使用 \"await\" 表达式,但此文件没有导入或导出。请考虑添加空的 \"export {}\" 以将此文件变为模块。",
@@ -1998,7 +1998,7 @@
1998
1998
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "'abstract' 修飾元只能出現在類別宣告、方法宣告或屬性宣告。",
1999
1999
  "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "'accessor' 修飾詞只能出現在屬性宣告。",
2000
2000
  "and_here_6204": "及此處。",
2001
- "arguments_cannot_be_referenced_in_property_initializers_2815": "屬性初始設定式中不得參考 'arguments'。",
2001
+ "arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815": "在屬性初始化器或類別靜態初始化區塊中無法引用『arguments』。",
2002
2002
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "\"auto\": 處理具有 imports、exports、import.meta, jsx (具有 jsx: react-jsx) 的檔案,或以 esm 格式 (具有 module: node16+) 作為模組。",
2003
2003
  "await_expression_cannot_be_used_inside_a_class_static_block_18037": "'await' 運算式無法在類別靜態區塊內使用。",
2004
2004
  "await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375": "當檔案為模組時,只允許 'await' 運算式位於檔案的最上層,但是此檔案沒有匯入或匯出。請考慮新增空白的 'export {}',使這個檔案成為模組。",
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.9.0-dev.20250604",
5
+ "version": "5.9.0-dev.20250606",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -116,5 +116,5 @@
116
116
  "node": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "44d46714c81e0cadf9067cc32b649c63d2a4f436"
119
+ "gitHead": "ac03ba4f021fce5a78bcdde39952879d0a4f35eb"
120
120
  }