@typescript-deploys/pr-build 5.4.0-pr-55774-21 → 5.4.0-pr-56358-6

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.4";
21
- var version = `${versionMajorMinor}.0-insiders.20231108`;
21
+ var version = `${versionMajorMinor}.0-insiders.20231109`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -40404,9 +40404,14 @@ function createBinder() {
40404
40404
  const clauses = node.clauses;
40405
40405
  const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
40406
40406
  let fallthroughFlow = unreachableFlow;
40407
+ let afterPreviousClauseFlow;
40407
40408
  for (let i = 0; i < clauses.length; i++) {
40408
40409
  const clauseStart = i;
40409
40410
  while (!clauses[i].statements.length && i + 1 < clauses.length) {
40411
+ if (afterPreviousClauseFlow && afterPreviousClauseFlow === unreachableFlow) {
40412
+ currentFlow = preSwitchCaseFlow;
40413
+ afterPreviousClauseFlow = void 0;
40414
+ }
40410
40415
  bind(clauses[i]);
40411
40416
  i++;
40412
40417
  }
@@ -40416,7 +40421,7 @@ function createBinder() {
40416
40421
  currentFlow = finishFlowLabel(preCaseLabel);
40417
40422
  const clause = clauses[i];
40418
40423
  bind(clause);
40419
- fallthroughFlow = currentFlow;
40424
+ fallthroughFlow = afterPreviousClauseFlow = currentFlow;
40420
40425
  if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {
40421
40426
  clause.fallthroughFlowNode = currentFlow;
40422
40427
  }
@@ -54244,13 +54249,7 @@ function createTypeChecker(host) {
54244
54249
  const templateModifiers = getMappedTypeModifiers(type);
54245
54250
  const include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;
54246
54251
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
54247
- if (isTupleType(modifiersType)) {
54248
- forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
54249
- } else if (isArrayType(modifiersType)) {
54250
- addMemberForKeyType(numberType);
54251
- } else {
54252
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
54253
- }
54252
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
54254
54253
  } else {
54255
54254
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
54256
54255
  }
@@ -56059,7 +56058,7 @@ function createTypeChecker(host) {
56059
56058
  if (constraint) {
56060
56059
  constraints = append(constraints, constraint);
56061
56060
  }
56062
- } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && (node === parent.type || node === parent.nameType)) {
56061
+ } else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && node === parent.type) {
56063
56062
  const mappedType = getTypeFromTypeNode(parent);
56064
56063
  if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
56065
56064
  const typeParameter = getHomomorphicTypeVariable(mappedType);
@@ -65649,6 +65648,10 @@ function createTypeChecker(host) {
65649
65648
  case 211 /* PropertyAccessExpression */:
65650
65649
  case 212 /* ElementAccessExpression */:
65651
65650
  return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);
65651
+ case 206 /* ObjectBindingPattern */:
65652
+ case 207 /* ArrayBindingPattern */:
65653
+ const rootDeclaration = getRootDeclaration(node.parent);
65654
+ return isVariableDeclaration(rootDeclaration) && isVarConstLike(rootDeclaration);
65652
65655
  }
65653
65656
  return false;
65654
65657
  }
package/lib/tsserver.js CHANGED
@@ -2330,7 +2330,7 @@ module.exports = __toCommonJS(server_exports);
2330
2330
 
2331
2331
  // src/compiler/corePublic.ts
2332
2332
  var versionMajorMinor = "5.4";
2333
- var version = `${versionMajorMinor}.0-insiders.20231108`;
2333
+ var version = `${versionMajorMinor}.0-insiders.20231109`;
2334
2334
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2335
2335
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2336
2336
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -45067,9 +45067,14 @@ function createBinder() {
45067
45067
  const clauses = node.clauses;
45068
45068
  const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
45069
45069
  let fallthroughFlow = unreachableFlow;
45070
+ let afterPreviousClauseFlow;
45070
45071
  for (let i = 0; i < clauses.length; i++) {
45071
45072
  const clauseStart = i;
45072
45073
  while (!clauses[i].statements.length && i + 1 < clauses.length) {
45074
+ if (afterPreviousClauseFlow && afterPreviousClauseFlow === unreachableFlow) {
45075
+ currentFlow = preSwitchCaseFlow;
45076
+ afterPreviousClauseFlow = void 0;
45077
+ }
45073
45078
  bind(clauses[i]);
45074
45079
  i++;
45075
45080
  }
@@ -45079,7 +45084,7 @@ function createBinder() {
45079
45084
  currentFlow = finishFlowLabel(preCaseLabel);
45080
45085
  const clause = clauses[i];
45081
45086
  bind(clause);
45082
- fallthroughFlow = currentFlow;
45087
+ fallthroughFlow = afterPreviousClauseFlow = currentFlow;
45083
45088
  if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {
45084
45089
  clause.fallthroughFlowNode = currentFlow;
45085
45090
  }
@@ -58952,13 +58957,7 @@ function createTypeChecker(host) {
58952
58957
  const templateModifiers = getMappedTypeModifiers(type);
58953
58958
  const include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;
58954
58959
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
58955
- if (isTupleType(modifiersType)) {
58956
- forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
58957
- } else if (isArrayType(modifiersType)) {
58958
- addMemberForKeyType(numberType);
58959
- } else {
58960
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
58961
- }
58960
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
58962
58961
  } else {
58963
58962
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
58964
58963
  }
@@ -60767,7 +60766,7 @@ function createTypeChecker(host) {
60767
60766
  if (constraint) {
60768
60767
  constraints = append(constraints, constraint);
60769
60768
  }
60770
- } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && (node === parent2.type || node === parent2.nameType)) {
60769
+ } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
60771
60770
  const mappedType = getTypeFromTypeNode(parent2);
60772
60771
  if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
60773
60772
  const typeParameter = getHomomorphicTypeVariable(mappedType);
@@ -70357,6 +70356,10 @@ function createTypeChecker(host) {
70357
70356
  case 211 /* PropertyAccessExpression */:
70358
70357
  case 212 /* ElementAccessExpression */:
70359
70358
  return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);
70359
+ case 206 /* ObjectBindingPattern */:
70360
+ case 207 /* ArrayBindingPattern */:
70361
+ const rootDeclaration = getRootDeclaration(node.parent);
70362
+ return isVariableDeclaration(rootDeclaration) && isVarConstLike(rootDeclaration);
70360
70363
  }
70361
70364
  return false;
70362
70365
  }
@@ -175415,6 +175418,35 @@ var TypingsInstaller = class {
175415
175418
  }
175416
175419
  }
175417
175420
  }
175421
+ /** @internal */
175422
+ installPackage(req) {
175423
+ const { fileName, packageName, projectName, projectRootPath } = req;
175424
+ const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
175425
+ if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
175426
+ return directory;
175427
+ }
175428
+ }) || projectRootPath;
175429
+ if (cwd) {
175430
+ this.installWorker(-1, [packageName], cwd, (success) => {
175431
+ const message = success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`;
175432
+ const response = {
175433
+ kind: ActionPackageInstalled,
175434
+ projectName,
175435
+ success,
175436
+ message
175437
+ };
175438
+ this.sendResponse(response);
175439
+ });
175440
+ } else {
175441
+ const response = {
175442
+ kind: ActionPackageInstalled,
175443
+ projectName,
175444
+ success: false,
175445
+ message: "Could not determine a project root path."
175446
+ };
175447
+ this.sendResponse(response);
175448
+ }
175449
+ }
175418
175450
  initializeSafeList() {
175419
175451
  if (this.typesMapLocation) {
175420
175452
  const safeListFromMap = ts_JsTyping_exports.loadTypesMap(this.installTypingHost, this.typesMapLocation);
@@ -177551,7 +177583,7 @@ var Project3 = class _Project {
177551
177583
  for (const file of changedFiles) {
177552
177584
  this.cachedUnresolvedImportsPerFile.delete(file);
177553
177585
  }
177554
- if (this.languageServiceEnabled && this.projectService.serverMode === 0 /* Semantic */) {
177586
+ if (this.languageServiceEnabled && this.projectService.serverMode === 0 /* Semantic */ && !this.isOrphan()) {
177555
177587
  if (hasNewProgram || changedFiles.length) {
177556
177588
  this.lastCachedUnresolvedImportsList = getUnresolvedImports(this.program, this.cachedUnresolvedImportsPerFile);
177557
177589
  }
@@ -183809,9 +183841,10 @@ var Session3 = class _Session {
183809
183841
  }
183810
183842
  }
183811
183843
  projectsUpdatedInBackgroundEvent(openFiles) {
183812
- this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${openFiles}`);
183844
+ this.projectService.logger.info(`got projects updated in background ${openFiles}`);
183813
183845
  if (openFiles.length) {
183814
183846
  if (!this.suppressDiagnosticEvents && !this.noGetErrOnBackgroundUpdate) {
183847
+ this.projectService.logger.info(`Queueing diagnostics update for ${openFiles}`);
183815
183848
  this.errorCheck.startNew((next) => this.updateErrorCheck(
183816
183849
  next,
183817
183850
  openFiles,
@@ -183882,7 +183915,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
183882
183915
  send(msg) {
183883
183916
  if (msg.type === "event" && !this.canUseEvents) {
183884
183917
  if (this.logger.hasLevel(3 /* verbose */)) {
183885
- this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(msg)}`);
183918
+ this.logger.info(`Session does not support events: ignored event: ${stringifyIndented(msg)}`);
183886
183919
  }
183887
183920
  return;
183888
183921
  }
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-insiders.20231108`;
38
+ version = `${versionMajorMinor}.0-insiders.20231109`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -42912,9 +42912,14 @@ ${lanes.join("\n")}
42912
42912
  const clauses = node.clauses;
42913
42913
  const isNarrowingSwitch = node.parent.expression.kind === 112 /* TrueKeyword */ || isNarrowingExpression(node.parent.expression);
42914
42914
  let fallthroughFlow = unreachableFlow;
42915
+ let afterPreviousClauseFlow;
42915
42916
  for (let i = 0; i < clauses.length; i++) {
42916
42917
  const clauseStart = i;
42917
42918
  while (!clauses[i].statements.length && i + 1 < clauses.length) {
42919
+ if (afterPreviousClauseFlow && afterPreviousClauseFlow === unreachableFlow) {
42920
+ currentFlow = preSwitchCaseFlow;
42921
+ afterPreviousClauseFlow = void 0;
42922
+ }
42918
42923
  bind(clauses[i]);
42919
42924
  i++;
42920
42925
  }
@@ -42924,7 +42929,7 @@ ${lanes.join("\n")}
42924
42929
  currentFlow = finishFlowLabel(preCaseLabel);
42925
42930
  const clause = clauses[i];
42926
42931
  bind(clause);
42927
- fallthroughFlow = currentFlow;
42932
+ fallthroughFlow = afterPreviousClauseFlow = currentFlow;
42928
42933
  if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {
42929
42934
  clause.fallthroughFlowNode = currentFlow;
42930
42935
  }
@@ -56717,13 +56722,7 @@ ${lanes.join("\n")}
56717
56722
  const templateModifiers = getMappedTypeModifiers(type);
56718
56723
  const include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;
56719
56724
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
56720
- if (isTupleType(modifiersType)) {
56721
- forEachType(getUnionType(getElementTypes(modifiersType).map((_, i) => getStringLiteralType("" + i))), addMemberForKeyType);
56722
- } else if (isArrayType(modifiersType)) {
56723
- addMemberForKeyType(numberType);
56724
- } else {
56725
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
56726
- }
56725
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, include, keyofStringsOnly, addMemberForKeyType);
56727
56726
  } else {
56728
56727
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
56729
56728
  }
@@ -58532,7 +58531,7 @@ ${lanes.join("\n")}
58532
58531
  if (constraint) {
58533
58532
  constraints = append(constraints, constraint);
58534
58533
  }
58535
- } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && (node === parent2.type || node === parent2.nameType)) {
58534
+ } else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
58536
58535
  const mappedType = getTypeFromTypeNode(parent2);
58537
58536
  if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
58538
58537
  const typeParameter = getHomomorphicTypeVariable(mappedType);
@@ -68122,6 +68121,10 @@ ${lanes.join("\n")}
68122
68121
  case 211 /* PropertyAccessExpression */:
68123
68122
  case 212 /* ElementAccessExpression */:
68124
68123
  return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);
68124
+ case 206 /* ObjectBindingPattern */:
68125
+ case 207 /* ArrayBindingPattern */:
68126
+ const rootDeclaration = getRootDeclaration(node.parent);
68127
+ return isVariableDeclaration(rootDeclaration) && isVarConstLike(rootDeclaration);
68125
68128
  }
68126
68129
  return false;
68127
68130
  }
@@ -172630,6 +172633,35 @@ ${options.prefix}` : "\n" : options.prefix
172630
172633
  }
172631
172634
  }
172632
172635
  }
172636
+ /** @internal */
172637
+ installPackage(req) {
172638
+ const { fileName, packageName, projectName, projectRootPath } = req;
172639
+ const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
172640
+ if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
172641
+ return directory;
172642
+ }
172643
+ }) || projectRootPath;
172644
+ if (cwd) {
172645
+ this.installWorker(-1, [packageName], cwd, (success) => {
172646
+ const message = success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`;
172647
+ const response = {
172648
+ kind: ActionPackageInstalled,
172649
+ projectName,
172650
+ success,
172651
+ message
172652
+ };
172653
+ this.sendResponse(response);
172654
+ });
172655
+ } else {
172656
+ const response = {
172657
+ kind: ActionPackageInstalled,
172658
+ projectName,
172659
+ success: false,
172660
+ message: "Could not determine a project root path."
172661
+ };
172662
+ this.sendResponse(response);
172663
+ }
172664
+ }
172633
172665
  initializeSafeList() {
172634
172666
  if (this.typesMapLocation) {
172635
172667
  const safeListFromMap = ts_JsTyping_exports.loadTypesMap(this.installTypingHost, this.typesMapLocation);
@@ -174882,7 +174914,7 @@ ${options.prefix}` : "\n" : options.prefix
174882
174914
  for (const file of changedFiles) {
174883
174915
  this.cachedUnresolvedImportsPerFile.delete(file);
174884
174916
  }
174885
- if (this.languageServiceEnabled && this.projectService.serverMode === 0 /* Semantic */) {
174917
+ if (this.languageServiceEnabled && this.projectService.serverMode === 0 /* Semantic */ && !this.isOrphan()) {
174886
174918
  if (hasNewProgram || changedFiles.length) {
174887
174919
  this.lastCachedUnresolvedImportsList = getUnresolvedImports(this.program, this.cachedUnresolvedImportsPerFile);
174888
174920
  }
@@ -181208,9 +181240,10 @@ ${json}${newLine}`;
181208
181240
  }
181209
181241
  }
181210
181242
  projectsUpdatedInBackgroundEvent(openFiles) {
181211
- this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${openFiles}`);
181243
+ this.projectService.logger.info(`got projects updated in background ${openFiles}`);
181212
181244
  if (openFiles.length) {
181213
181245
  if (!this.suppressDiagnosticEvents && !this.noGetErrOnBackgroundUpdate) {
181246
+ this.projectService.logger.info(`Queueing diagnostics update for ${openFiles}`);
181214
181247
  this.errorCheck.startNew((next) => this.updateErrorCheck(
181215
181248
  next,
181216
181249
  openFiles,
@@ -181281,7 +181314,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
181281
181314
  send(msg) {
181282
181315
  if (msg.type === "event" && !this.canUseEvents) {
181283
181316
  if (this.logger.hasLevel(3 /* verbose */)) {
181284
- this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(msg)}`);
181317
+ this.logger.info(`Session does not support events: ignored event: ${stringifyIndented(msg)}`);
181285
181318
  }
181286
181319
  return;
181287
181320
  }
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-insiders.20231108`;
57
+ var version = `${versionMajorMinor}.0-insiders.20231109`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -31902,6 +31902,35 @@ var TypingsInstaller = class {
31902
31902
  }
31903
31903
  }
31904
31904
  }
31905
+ /** @internal */
31906
+ installPackage(req) {
31907
+ const { fileName, packageName, projectName, projectRootPath } = req;
31908
+ const cwd = forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
31909
+ if (this.installTypingHost.fileExists(combinePaths(directory, "package.json"))) {
31910
+ return directory;
31911
+ }
31912
+ }) || projectRootPath;
31913
+ if (cwd) {
31914
+ this.installWorker(-1, [packageName], cwd, (success) => {
31915
+ const message = success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`;
31916
+ const response = {
31917
+ kind: ActionPackageInstalled,
31918
+ projectName,
31919
+ success,
31920
+ message
31921
+ };
31922
+ this.sendResponse(response);
31923
+ });
31924
+ } else {
31925
+ const response = {
31926
+ kind: ActionPackageInstalled,
31927
+ projectName,
31928
+ success: false,
31929
+ message: "Could not determine a project root path."
31930
+ };
31931
+ this.sendResponse(response);
31932
+ }
31933
+ }
31905
31934
  initializeSafeList() {
31906
31935
  if (this.typesMapLocation) {
31907
31936
  const safeListFromMap = ts_JsTyping_exports.loadTypesMap(this.installTypingHost, this.typesMapLocation);
@@ -32252,18 +32281,7 @@ var NodeTypingsInstaller = class extends TypingsInstaller {
32252
32281
  break;
32253
32282
  }
32254
32283
  case "installPackage": {
32255
- const { fileName, packageName, projectName, projectRootPath } = req;
32256
- const cwd = getDirectoryOfPackageJson(fileName, this.installTypingHost) || projectRootPath;
32257
- if (cwd) {
32258
- this.installWorker(-1, [packageName], cwd, (success) => {
32259
- const message = success ? `Package ${packageName} installed.` : `There was an error installing ${packageName}.`;
32260
- const response = { kind: ActionPackageInstalled, projectName, success, message };
32261
- this.sendResponse(response);
32262
- });
32263
- } else {
32264
- const response = { kind: ActionPackageInstalled, projectName, success: false, message: "Could not determine a project root path." };
32265
- this.sendResponse(response);
32266
- }
32284
+ this.installPackage(req);
32267
32285
  break;
32268
32286
  }
32269
32287
  default:
@@ -32281,7 +32299,7 @@ var NodeTypingsInstaller = class extends TypingsInstaller {
32281
32299
  }
32282
32300
  installWorker(requestId, packageNames, cwd, onRequestCompleted) {
32283
32301
  if (this.log.isEnabled()) {
32284
- this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(packageNames)}'.`);
32302
+ this.log.writeLine(`#${requestId} with cwd: ${cwd} arguments: ${JSON.stringify(packageNames)}`);
32285
32303
  }
32286
32304
  const start = Date.now();
32287
32305
  const hasError = installNpmPackages(this.npmPath, version, packageNames, (command) => this.execSyncAndLog(command, { cwd }));
@@ -32308,13 +32326,6 @@ var NodeTypingsInstaller = class extends TypingsInstaller {
32308
32326
  }
32309
32327
  }
32310
32328
  };
32311
- function getDirectoryOfPackageJson(fileName, host) {
32312
- return forEachAncestorDirectory(getDirectoryPath(fileName), (directory) => {
32313
- if (host.fileExists(combinePaths(directory, "package.json"))) {
32314
- return directory;
32315
- }
32316
- });
32317
- }
32318
32329
  var logFilePath = findArgument(Arguments.LogFile);
32319
32330
  var globalTypingsCacheLocation = findArgument(Arguments.GlobalCacheLocation);
32320
32331
  var typingSafeListLocation = findArgument(Arguments.TypingSafeListLocation);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.4.0-pr-55774-21",
5
+ "version": "5.4.0-pr-56358-6",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "a03020485671687b499ae5d411decb6260a9b4f3"
118
+ "gitHead": "2f4cd21b78f16a6222d1c9b3eb2834385c7d8986"
119
119
  }