@typescript-deploys/pr-build 6.0.0-pr-60121-19 → 6.0.0-pr-62381-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/_tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "6.0";
21
- var version = `${versionMajorMinor}.0-insiders.20250823`;
21
+ var version = `${versionMajorMinor}.0-insiders.20250903`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -14890,6 +14890,22 @@ function isVariableDeclarationInitializedToBareOrAccessedRequire(node) {
14890
14890
  function isBindingElementOfBareOrAccessedRequire(node) {
14891
14891
  return isBindingElement(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent);
14892
14892
  }
14893
+ function getModuleSpecifierOfBareOrAccessedRequire(node) {
14894
+ if (isVariableDeclarationInitializedToRequire(node)) {
14895
+ return node.initializer.arguments[0];
14896
+ }
14897
+ if (isVariableDeclarationInitializedToBareOrAccessedRequire(node)) {
14898
+ const leftmost = getLeftmostAccessExpression(node.initializer);
14899
+ if (isRequireCall(
14900
+ leftmost,
14901
+ /*requireStringLiteralLikeArgument*/
14902
+ true
14903
+ )) {
14904
+ return leftmost.arguments[0];
14905
+ }
14906
+ }
14907
+ return void 0;
14908
+ }
14893
14909
  function isVariableDeclarationInitializedWithRequireHelper(node, allowAccessedRequire) {
14894
14910
  return isVariableDeclaration(node) && !!node.initializer && isRequireCall(
14895
14911
  allowAccessedRequire ? getLeftmostAccessExpression(node.initializer) : node.initializer,
@@ -17966,9 +17982,6 @@ var _computedOptions = createComputedCompilerOptions({
17966
17982
  let moduleResolution = compilerOptions.moduleResolution;
17967
17983
  if (moduleResolution === void 0) {
17968
17984
  switch (_computedOptions.module.computeValue(compilerOptions)) {
17969
- case 1 /* CommonJS */:
17970
- moduleResolution = 2 /* Node10 */;
17971
- break;
17972
17985
  case 100 /* Node16 */:
17973
17986
  case 101 /* Node18 */:
17974
17987
  case 102 /* Node20 */:
@@ -17977,6 +17990,7 @@ var _computedOptions = createComputedCompilerOptions({
17977
17990
  case 199 /* NodeNext */:
17978
17991
  moduleResolution = 99 /* NodeNext */;
17979
17992
  break;
17993
+ case 1 /* CommonJS */:
17980
17994
  case 200 /* Preserve */:
17981
17995
  moduleResolution = 100 /* Bundler */;
17982
17996
  break;
@@ -49409,11 +49423,7 @@ function createTypeChecker(host) {
49409
49423
  return ambientModule;
49410
49424
  }
49411
49425
  const currentSourceFile = getSourceFileOfNode(location);
49412
- const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall(
49413
- location.initializer,
49414
- /*requireStringLiteralLikeArgument*/
49415
- true
49416
- ) ? location.initializer.arguments[0] : void 0) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression);
49426
+ const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || isVariableDeclarationInitializedToBareOrAccessedRequire(location) && getModuleSpecifierOfBareOrAccessedRequire(location) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression);
49417
49427
  const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile);
49418
49428
  const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions);
49419
49429
  const resolvedModule = (_f = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _f.resolvedModule;
@@ -63742,6 +63752,9 @@ function createTypeChecker(host) {
63742
63752
  const { expression } = node;
63743
63753
  return !!expression && isContextSensitive(expression);
63744
63754
  }
63755
+ case 215 /* NewExpression */:
63756
+ case 214 /* CallExpression */:
63757
+ return some(node.arguments, isContextSensitive);
63745
63758
  }
63746
63759
  return false;
63747
63760
  }
@@ -76891,7 +76904,7 @@ function createTypeChecker(host) {
76891
76904
  }
76892
76905
  return resolveErrorCall(node);
76893
76906
  }
76894
- if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) {
76907
+ if (!node.typeArguments && (checkMode & 8 /* SkipGenericFunctions */ && callSignatures.some(isGenericFunctionReturningFunction) || (checkMode & (1 /* Contextual */ | 4 /* SkipContextSensitive */)) === (1 /* Contextual */ | 4 /* SkipContextSensitive */) && isContextSensitive(node))) {
76895
76908
  skippedGenericFunction(node, checkMode);
76896
76909
  return resolvingSignature;
76897
76910
  }
@@ -76922,6 +76935,10 @@ function createTypeChecker(host) {
76922
76935
  }
76923
76936
  return resolveUntypedCall(node);
76924
76937
  }
76938
+ if (!node.typeArguments && (checkMode & (1 /* Contextual */ | 4 /* SkipContextSensitive */)) === (1 /* Contextual */ | 4 /* SkipContextSensitive */) && isContextSensitive(node)) {
76939
+ skippedGenericFunction(node, checkMode);
76940
+ return resolvingSignature;
76941
+ }
76925
76942
  const constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */);
76926
76943
  if (constructSignatures.length) {
76927
76944
  if (!isConstructorAccessible(node, constructSignatures[0])) {
@@ -83208,11 +83225,8 @@ function createTypeChecker(host) {
83208
83225
  }
83209
83226
  const parent = node.parent.parent;
83210
83227
  const parentCheckMode = node.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */;
83228
+ const parentType = getTypeForBindingElementParent(parent, parentCheckMode);
83211
83229
  const name = node.propertyName || node.name;
83212
- let parentType = getTypeForBindingElementParent(parent, parentCheckMode);
83213
- if (parentType && !parent.initializer) {
83214
- parentType = checkNonNullType(parentType, parent);
83215
- }
83216
83230
  if (parentType && !isBindingPattern(name)) {
83217
83231
  const exprType = getLiteralTypeFromPropertyName(name);
83218
83232
  if (isTypeUsableAsPropertyName(exprType)) {
@@ -83252,15 +83266,16 @@ function createTypeChecker(host) {
83252
83266
  if (isInAmbientOrTypeNode(node)) {
83253
83267
  return;
83254
83268
  }
83255
- const needCheckInitializer = node.initializer && node.parent.parent.kind !== 250 /* ForInStatement */;
83269
+ const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 250 /* ForInStatement */;
83256
83270
  const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression));
83257
83271
  if (needCheckInitializer || needCheckWidenedType) {
83258
83272
  const widenedType = getWidenedTypeForVariableLikeDeclaration(node);
83259
83273
  if (needCheckInitializer) {
83274
+ const initializerType = checkExpressionCached(node.initializer);
83260
83275
  if (strictNullChecks && needCheckWidenedType) {
83261
- checkNonNullNonVoidType(checkExpressionCached(node.initializer), node);
83276
+ checkNonNullNonVoidType(initializerType, node);
83262
83277
  } else {
83263
- checkTypeAssignableToAndOptionallyElaborate(checkNonNullExpression(node.initializer), getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer);
83278
+ checkTypeAssignableToAndOptionallyElaborate(initializerType, getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer);
83264
83279
  }
83265
83280
  }
83266
83281
  if (needCheckWidenedType) {
@@ -124495,7 +124510,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124495
124510
  function getIgnoreDeprecationsVersion() {
124496
124511
  const ignoreDeprecations = options.ignoreDeprecations;
124497
124512
  if (ignoreDeprecations) {
124498
- if (ignoreDeprecations === "5.0") {
124513
+ if (ignoreDeprecations === "5.0" || ignoreDeprecations === "6.0") {
124499
124514
  return new Version(ignoreDeprecations);
124500
124515
  }
124501
124516
  reportInvalidIgnoreDeprecations();
@@ -124604,6 +124619,11 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124604
124619
  );
124605
124620
  }
124606
124621
  });
124622
+ checkDeprecations("6.0", "7.0", createDiagnostic, (createDeprecatedDiagnostic) => {
124623
+ if (options.moduleResolution === 2 /* Node10 */) {
124624
+ createDeprecatedDiagnostic("moduleResolution", "node10");
124625
+ }
124626
+ });
124607
124627
  }
124608
124628
  function verifyDeprecatedProjectReference(ref, parentFile, index) {
124609
124629
  function createDiagnostic(_name, _value, _useInstead, message, ...args) {
@@ -2530,6 +2530,7 @@ declare namespace ts {
2530
2530
  Node = "node",
2531
2531
  /** @deprecated Renamed to `Node10` */
2532
2532
  NodeJs = "node",
2533
+ /** @deprecated */
2533
2534
  Node10 = "node10",
2534
2535
  Node16 = "node16",
2535
2536
  NodeNext = "nodenext",
@@ -6958,6 +6959,9 @@ declare namespace ts {
6958
6959
  * Use the new name or consider switching to a modern module resolution target.
6959
6960
  */
6960
6961
  NodeJs = 2,
6962
+ /**
6963
+ * @deprecated
6964
+ */
6961
6965
  Node10 = 2,
6962
6966
  Node16 = 3,
6963
6967
  NodeNext = 99,
package/lib/typescript.js CHANGED
@@ -881,6 +881,7 @@ __export(typescript_exports, {
881
881
  getModuleInstanceState: () => getModuleInstanceState,
882
882
  getModuleNameStringLiteralAt: () => getModuleNameStringLiteralAt,
883
883
  getModuleSpecifierEndingPreference: () => getModuleSpecifierEndingPreference,
884
+ getModuleSpecifierOfBareOrAccessedRequire: () => getModuleSpecifierOfBareOrAccessedRequire,
884
885
  getModuleSpecifierResolverHost: () => getModuleSpecifierResolverHost,
885
886
  getNameForExportedSymbol: () => getNameForExportedSymbol,
886
887
  getNameFromImportAttribute: () => getNameFromImportAttribute,
@@ -2285,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2286
 
2286
2287
  // src/compiler/corePublic.ts
2287
2288
  var versionMajorMinor = "6.0";
2288
- var version = `${versionMajorMinor}.0-insiders.20250823`;
2289
+ var version = `${versionMajorMinor}.0-insiders.20250903`;
2289
2290
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2291
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2292
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -18580,6 +18581,22 @@ function isVariableDeclarationInitializedToBareOrAccessedRequire(node) {
18580
18581
  function isBindingElementOfBareOrAccessedRequire(node) {
18581
18582
  return isBindingElement(node) && isVariableDeclarationInitializedToBareOrAccessedRequire(node.parent.parent);
18582
18583
  }
18584
+ function getModuleSpecifierOfBareOrAccessedRequire(node) {
18585
+ if (isVariableDeclarationInitializedToRequire(node)) {
18586
+ return node.initializer.arguments[0];
18587
+ }
18588
+ if (isVariableDeclarationInitializedToBareOrAccessedRequire(node)) {
18589
+ const leftmost = getLeftmostAccessExpression(node.initializer);
18590
+ if (isRequireCall(
18591
+ leftmost,
18592
+ /*requireStringLiteralLikeArgument*/
18593
+ true
18594
+ )) {
18595
+ return leftmost.arguments[0];
18596
+ }
18597
+ }
18598
+ return void 0;
18599
+ }
18583
18600
  function isVariableDeclarationInitializedWithRequireHelper(node, allowAccessedRequire) {
18584
18601
  return isVariableDeclaration(node) && !!node.initializer && isRequireCall(
18585
18602
  allowAccessedRequire ? getLeftmostAccessExpression(node.initializer) : node.initializer,
@@ -21921,9 +21938,6 @@ var _computedOptions = createComputedCompilerOptions({
21921
21938
  let moduleResolution = compilerOptions.moduleResolution;
21922
21939
  if (moduleResolution === void 0) {
21923
21940
  switch (_computedOptions.module.computeValue(compilerOptions)) {
21924
- case 1 /* CommonJS */:
21925
- moduleResolution = 2 /* Node10 */;
21926
- break;
21927
21941
  case 100 /* Node16 */:
21928
21942
  case 101 /* Node18 */:
21929
21943
  case 102 /* Node20 */:
@@ -21932,6 +21946,7 @@ var _computedOptions = createComputedCompilerOptions({
21932
21946
  case 199 /* NodeNext */:
21933
21947
  moduleResolution = 99 /* NodeNext */;
21934
21948
  break;
21949
+ case 1 /* CommonJS */:
21935
21950
  case 200 /* Preserve */:
21936
21951
  moduleResolution = 100 /* Bundler */;
21937
21952
  break;
@@ -54017,11 +54032,7 @@ function createTypeChecker(host) {
54017
54032
  return ambientModule;
54018
54033
  }
54019
54034
  const currentSourceFile = getSourceFileOfNode(location);
54020
- const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || (isVariableDeclaration(location) && location.initializer && isRequireCall(
54021
- location.initializer,
54022
- /*requireStringLiteralLikeArgument*/
54023
- true
54024
- ) ? location.initializer.arguments[0] : void 0) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression);
54035
+ const contextSpecifier = isStringLiteralLike(location) ? location : ((_a = isModuleDeclaration(location) ? location : location.parent && isModuleDeclaration(location.parent) && location.parent.name === location ? location.parent : void 0) == null ? void 0 : _a.name) || ((_b = isLiteralImportTypeNode(location) ? location : void 0) == null ? void 0 : _b.argument.literal) || isVariableDeclarationInitializedToBareOrAccessedRequire(location) && getModuleSpecifierOfBareOrAccessedRequire(location) || ((_c = findAncestor(location, isImportCall)) == null ? void 0 : _c.arguments[0]) || ((_d = findAncestor(location, or(isImportDeclaration, isJSDocImportTag, isExportDeclaration))) == null ? void 0 : _d.moduleSpecifier) || ((_e = findAncestor(location, isExternalModuleImportEqualsDeclaration)) == null ? void 0 : _e.moduleReference.expression);
54025
54036
  const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile);
54026
54037
  const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions);
54027
54038
  const resolvedModule = (_f = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _f.resolvedModule;
@@ -68350,6 +68361,9 @@ function createTypeChecker(host) {
68350
68361
  const { expression } = node;
68351
68362
  return !!expression && isContextSensitive(expression);
68352
68363
  }
68364
+ case 215 /* NewExpression */:
68365
+ case 214 /* CallExpression */:
68366
+ return some(node.arguments, isContextSensitive);
68353
68367
  }
68354
68368
  return false;
68355
68369
  }
@@ -81499,7 +81513,7 @@ function createTypeChecker(host) {
81499
81513
  }
81500
81514
  return resolveErrorCall(node);
81501
81515
  }
81502
- if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) {
81516
+ if (!node.typeArguments && (checkMode & 8 /* SkipGenericFunctions */ && callSignatures.some(isGenericFunctionReturningFunction) || (checkMode & (1 /* Contextual */ | 4 /* SkipContextSensitive */)) === (1 /* Contextual */ | 4 /* SkipContextSensitive */) && isContextSensitive(node))) {
81503
81517
  skippedGenericFunction(node, checkMode);
81504
81518
  return resolvingSignature;
81505
81519
  }
@@ -81530,6 +81544,10 @@ function createTypeChecker(host) {
81530
81544
  }
81531
81545
  return resolveUntypedCall(node);
81532
81546
  }
81547
+ if (!node.typeArguments && (checkMode & (1 /* Contextual */ | 4 /* SkipContextSensitive */)) === (1 /* Contextual */ | 4 /* SkipContextSensitive */) && isContextSensitive(node)) {
81548
+ skippedGenericFunction(node, checkMode);
81549
+ return resolvingSignature;
81550
+ }
81533
81551
  const constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */);
81534
81552
  if (constructSignatures.length) {
81535
81553
  if (!isConstructorAccessible(node, constructSignatures[0])) {
@@ -87816,11 +87834,8 @@ function createTypeChecker(host) {
87816
87834
  }
87817
87835
  const parent2 = node.parent.parent;
87818
87836
  const parentCheckMode = node.dotDotDotToken ? 32 /* RestBindingElement */ : 0 /* Normal */;
87837
+ const parentType = getTypeForBindingElementParent(parent2, parentCheckMode);
87819
87838
  const name = node.propertyName || node.name;
87820
- let parentType = getTypeForBindingElementParent(parent2, parentCheckMode);
87821
- if (parentType && !parent2.initializer) {
87822
- parentType = checkNonNullType(parentType, parent2);
87823
- }
87824
87839
  if (parentType && !isBindingPattern(name)) {
87825
87840
  const exprType = getLiteralTypeFromPropertyName(name);
87826
87841
  if (isTypeUsableAsPropertyName(exprType)) {
@@ -87860,15 +87875,16 @@ function createTypeChecker(host) {
87860
87875
  if (isInAmbientOrTypeNode(node)) {
87861
87876
  return;
87862
87877
  }
87863
- const needCheckInitializer = node.initializer && node.parent.parent.kind !== 250 /* ForInStatement */;
87878
+ const needCheckInitializer = hasOnlyExpressionInitializer(node) && node.initializer && node.parent.parent.kind !== 250 /* ForInStatement */;
87864
87879
  const needCheckWidenedType = !some(node.name.elements, not(isOmittedExpression));
87865
87880
  if (needCheckInitializer || needCheckWidenedType) {
87866
87881
  const widenedType = getWidenedTypeForVariableLikeDeclaration(node);
87867
87882
  if (needCheckInitializer) {
87883
+ const initializerType = checkExpressionCached(node.initializer);
87868
87884
  if (strictNullChecks && needCheckWidenedType) {
87869
- checkNonNullNonVoidType(checkExpressionCached(node.initializer), node);
87885
+ checkNonNullNonVoidType(initializerType, node);
87870
87886
  } else {
87871
- checkTypeAssignableToAndOptionallyElaborate(checkNonNullExpression(node.initializer), getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer);
87887
+ checkTypeAssignableToAndOptionallyElaborate(initializerType, getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer);
87872
87888
  }
87873
87889
  }
87874
87890
  if (needCheckWidenedType) {
@@ -129342,7 +129358,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
129342
129358
  function getIgnoreDeprecationsVersion() {
129343
129359
  const ignoreDeprecations = options.ignoreDeprecations;
129344
129360
  if (ignoreDeprecations) {
129345
- if (ignoreDeprecations === "5.0") {
129361
+ if (ignoreDeprecations === "5.0" || ignoreDeprecations === "6.0") {
129346
129362
  return new Version(ignoreDeprecations);
129347
129363
  }
129348
129364
  reportInvalidIgnoreDeprecations();
@@ -129451,6 +129467,11 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
129451
129467
  );
129452
129468
  }
129453
129469
  });
129470
+ checkDeprecations("6.0", "7.0", createDiagnostic, (createDeprecatedDiagnostic) => {
129471
+ if (options.moduleResolution === 2 /* Node10 */) {
129472
+ createDeprecatedDiagnostic("moduleResolution", "node10");
129473
+ }
129474
+ });
129454
129475
  }
129455
129476
  function verifyDeprecatedProjectReference(ref, parentFile, index) {
129456
129477
  function createDiagnostic(_name, _value, _useInstead, message, ...args) {
@@ -169447,9 +169468,6 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
169447
169468
  return charactersFuzzyMatchInString(symbolName2, lowerCaseTokenText);
169448
169469
  },
169449
169470
  (info, symbolName2, isFromAmbientModule, exportMapKey) => {
169450
- if (detailsEntryId && !some(info, (i) => detailsEntryId.source === stripQuotes(i.moduleSymbol.name))) {
169451
- return;
169452
- }
169453
169471
  info = filter(info, isImportableExportInfo);
169454
169472
  if (!info.length) {
169455
169473
  return;
@@ -169460,6 +169478,9 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
169460
169478
  if (result !== "skipped") {
169461
169479
  ({ exportInfo: exportInfo2 = info[0], moduleSpecifier } = result);
169462
169480
  }
169481
+ if (detailsEntryId && (detailsEntryId.source !== moduleSpecifier && !some(info, (i) => detailsEntryId.source === stripQuotes(i.moduleSymbol.name)))) {
169482
+ return;
169483
+ }
169463
169484
  const isDefaultExport = exportInfo2.exportKind === 1 /* Default */;
169464
169485
  const symbol = isDefaultExport && getLocalSymbolForExportDefault(Debug.checkDefined(exportInfo2.symbol)) || Debug.checkDefined(exportInfo2.symbol);
169465
169486
  pushAutoImportSymbol(symbol, {
@@ -171550,7 +171571,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p
171550
171571
  if (tryFileExists(host, packageFile)) {
171551
171572
  const packageJson = readJson(packageFile, host);
171552
171573
  const fragmentSubpath = components.join("/") + (components.length && hasTrailingDirectorySeparator(fragment) ? "/" : "");
171553
- exportsOrImportsLookup(
171574
+ if (exportsOrImportsLookup(
171554
171575
  packageJson.exports,
171555
171576
  fragmentSubpath,
171556
171577
  packageDirectory,
@@ -171558,8 +171579,9 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p
171558
171579
  true,
171559
171580
  /*isImports*/
171560
171581
  false
171561
- );
171562
- return;
171582
+ )) {
171583
+ return;
171584
+ }
171563
171585
  }
171564
171586
  return nodeModulesDirectoryOrImportsLookup(ancestor);
171565
171587
  };
@@ -171570,7 +171592,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p
171570
171592
  return arrayFrom(result.values());
171571
171593
  function exportsOrImportsLookup(lookupTable, fragment2, baseDirectory, isExports, isImports) {
171572
171594
  if (typeof lookupTable !== "object" || lookupTable === null) {
171573
- return;
171595
+ return lookupTable !== void 0;
171574
171596
  }
171575
171597
  const keys = getOwnKeys(lookupTable);
171576
171598
  const conditions = getConditions(compilerOptions, mode);
@@ -171594,6 +171616,7 @@ function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, mode, p
171594
171616
  },
171595
171617
  comparePatternKeys
171596
171618
  );
171619
+ return true;
171597
171620
  }
171598
171621
  }
171599
171622
  function getPatternFromFirstMatchingCondition(target, conditions) {
@@ -184093,6 +184116,7 @@ __export(ts_exports2, {
184093
184116
  getModuleInstanceState: () => getModuleInstanceState,
184094
184117
  getModuleNameStringLiteralAt: () => getModuleNameStringLiteralAt,
184095
184118
  getModuleSpecifierEndingPreference: () => getModuleSpecifierEndingPreference,
184119
+ getModuleSpecifierOfBareOrAccessedRequire: () => getModuleSpecifierOfBareOrAccessedRequire,
184096
184120
  getModuleSpecifierResolverHost: () => getModuleSpecifierResolverHost,
184097
184121
  getNameForExportedSymbol: () => getNameForExportedSymbol,
184098
184122
  getNameFromImportAttribute: () => getNameFromImportAttribute,
@@ -198854,6 +198878,7 @@ if (typeof console !== "undefined") {
198854
198878
  getModuleInstanceState,
198855
198879
  getModuleNameStringLiteralAt,
198856
198880
  getModuleSpecifierEndingPreference,
198881
+ getModuleSpecifierOfBareOrAccessedRequire,
198857
198882
  getModuleSpecifierResolverHost,
198858
198883
  getNameForExportedSymbol,
198859
198884
  getNameFromImportAttribute,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "6.0.0-pr-60121-19",
5
+ "version": "6.0.0-pr-62381-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [