@typescript-deploys/pr-build 5.3.0-pr-55386-10 → 5.3.0-pr-55738-2
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 +11 -8
- package/lib/tsserver.js +11 -8
- package/lib/typescript.js +11 -8
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -55721,7 +55721,7 @@ function createTypeChecker(host) {
|
|
|
55721
55721
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
55722
55722
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
55723
55723
|
if (typeParameter) {
|
|
55724
|
-
const constraint = getConstraintOfTypeParameter(
|
|
55724
|
+
const constraint = getConstraintOfTypeParameter(typeParameter);
|
|
55725
55725
|
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
55726
55726
|
constraints = append(constraints, getUnionType([numberType, numericStringType]));
|
|
55727
55727
|
}
|
|
@@ -82041,11 +82041,11 @@ function createTypeChecker(host) {
|
|
|
82041
82041
|
if (fileToDirective.has(file.path))
|
|
82042
82042
|
return;
|
|
82043
82043
|
fileToDirective.set(file.path, [key, mode]);
|
|
82044
|
-
for (const { fileName
|
|
82044
|
+
for (const { fileName } of file.referencedFiles) {
|
|
82045
82045
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
82046
82046
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
82047
82047
|
if (referencedFile) {
|
|
82048
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
82048
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
82049
82049
|
}
|
|
82050
82050
|
}
|
|
82051
82051
|
}
|
|
@@ -120459,19 +120459,22 @@ function removeIgnoredPath(path) {
|
|
|
120459
120459
|
function perceivedOsRootLengthForWatching(pathComponents2, length2) {
|
|
120460
120460
|
if (length2 <= 1)
|
|
120461
120461
|
return 1;
|
|
120462
|
-
let
|
|
120462
|
+
let indexAfterOsRoot = 1;
|
|
120463
120463
|
let isDosStyle = pathComponents2[0].search(/[a-zA-Z]:/) === 0;
|
|
120464
120464
|
if (pathComponents2[0] !== directorySeparator && !isDosStyle && // Non dos style paths
|
|
120465
120465
|
pathComponents2[1].search(/[a-zA-Z]\$$/) === 0) {
|
|
120466
120466
|
if (length2 === 2)
|
|
120467
120467
|
return 2;
|
|
120468
|
-
|
|
120468
|
+
indexAfterOsRoot = 2;
|
|
120469
120469
|
isDosStyle = true;
|
|
120470
120470
|
}
|
|
120471
|
-
if (isDosStyle && !pathComponents2[
|
|
120472
|
-
return
|
|
120471
|
+
if (isDosStyle && !pathComponents2[indexAfterOsRoot].match(/^users$/i)) {
|
|
120472
|
+
return indexAfterOsRoot;
|
|
120473
120473
|
}
|
|
120474
|
-
|
|
120474
|
+
if (pathComponents2[indexAfterOsRoot].match(/^workspaces$/i)) {
|
|
120475
|
+
return indexAfterOsRoot + 1;
|
|
120476
|
+
}
|
|
120477
|
+
return indexAfterOsRoot + 2;
|
|
120475
120478
|
}
|
|
120476
120479
|
function canWatchDirectoryOrFile(pathComponents2, length2) {
|
|
120477
120480
|
if (length2 === void 0)
|
package/lib/tsserver.js
CHANGED
|
@@ -60424,7 +60424,7 @@ function createTypeChecker(host) {
|
|
|
60424
60424
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
60425
60425
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
60426
60426
|
if (typeParameter) {
|
|
60427
|
-
const constraint = getConstraintOfTypeParameter(
|
|
60427
|
+
const constraint = getConstraintOfTypeParameter(typeParameter);
|
|
60428
60428
|
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
60429
60429
|
constraints = append(constraints, getUnionType([numberType, numericStringType]));
|
|
60430
60430
|
}
|
|
@@ -86744,11 +86744,11 @@ function createTypeChecker(host) {
|
|
|
86744
86744
|
if (fileToDirective.has(file.path))
|
|
86745
86745
|
return;
|
|
86746
86746
|
fileToDirective.set(file.path, [key, mode]);
|
|
86747
|
-
for (const { fileName
|
|
86747
|
+
for (const { fileName } of file.referencedFiles) {
|
|
86748
86748
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
86749
86749
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
86750
86750
|
if (referencedFile) {
|
|
86751
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
86751
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
86752
86752
|
}
|
|
86753
86753
|
}
|
|
86754
86754
|
}
|
|
@@ -125430,19 +125430,22 @@ function removeIgnoredPath(path) {
|
|
|
125430
125430
|
function perceivedOsRootLengthForWatching(pathComponents2, length2) {
|
|
125431
125431
|
if (length2 <= 1)
|
|
125432
125432
|
return 1;
|
|
125433
|
-
let
|
|
125433
|
+
let indexAfterOsRoot = 1;
|
|
125434
125434
|
let isDosStyle = pathComponents2[0].search(/[a-zA-Z]:/) === 0;
|
|
125435
125435
|
if (pathComponents2[0] !== directorySeparator && !isDosStyle && // Non dos style paths
|
|
125436
125436
|
pathComponents2[1].search(/[a-zA-Z]\$$/) === 0) {
|
|
125437
125437
|
if (length2 === 2)
|
|
125438
125438
|
return 2;
|
|
125439
|
-
|
|
125439
|
+
indexAfterOsRoot = 2;
|
|
125440
125440
|
isDosStyle = true;
|
|
125441
125441
|
}
|
|
125442
|
-
if (isDosStyle && !pathComponents2[
|
|
125443
|
-
return
|
|
125442
|
+
if (isDosStyle && !pathComponents2[indexAfterOsRoot].match(/^users$/i)) {
|
|
125443
|
+
return indexAfterOsRoot;
|
|
125444
125444
|
}
|
|
125445
|
-
|
|
125445
|
+
if (pathComponents2[indexAfterOsRoot].match(/^workspaces$/i)) {
|
|
125446
|
+
return indexAfterOsRoot + 1;
|
|
125447
|
+
}
|
|
125448
|
+
return indexAfterOsRoot + 2;
|
|
125446
125449
|
}
|
|
125447
125450
|
function canWatchDirectoryOrFile(pathComponents2, length2) {
|
|
125448
125451
|
if (length2 === void 0)
|
package/lib/typescript.js
CHANGED
|
@@ -58190,7 +58190,7 @@ ${lanes.join("\n")}
|
|
|
58190
58190
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
58191
58191
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
58192
58192
|
if (typeParameter) {
|
|
58193
|
-
const constraint = getConstraintOfTypeParameter(
|
|
58193
|
+
const constraint = getConstraintOfTypeParameter(typeParameter);
|
|
58194
58194
|
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
58195
58195
|
constraints = append(constraints, getUnionType([numberType, numericStringType]));
|
|
58196
58196
|
}
|
|
@@ -84510,11 +84510,11 @@ ${lanes.join("\n")}
|
|
|
84510
84510
|
if (fileToDirective.has(file.path))
|
|
84511
84511
|
return;
|
|
84512
84512
|
fileToDirective.set(file.path, [key, mode]);
|
|
84513
|
-
for (const { fileName
|
|
84513
|
+
for (const { fileName } of file.referencedFiles) {
|
|
84514
84514
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
84515
84515
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
84516
84516
|
if (referencedFile) {
|
|
84517
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
84517
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
84518
84518
|
}
|
|
84519
84519
|
}
|
|
84520
84520
|
}
|
|
@@ -123573,19 +123573,22 @@ ${lanes.join("\n")}
|
|
|
123573
123573
|
function perceivedOsRootLengthForWatching(pathComponents2, length2) {
|
|
123574
123574
|
if (length2 <= 1)
|
|
123575
123575
|
return 1;
|
|
123576
|
-
let
|
|
123576
|
+
let indexAfterOsRoot = 1;
|
|
123577
123577
|
let isDosStyle = pathComponents2[0].search(/[a-zA-Z]:/) === 0;
|
|
123578
123578
|
if (pathComponents2[0] !== directorySeparator && !isDosStyle && // Non dos style paths
|
|
123579
123579
|
pathComponents2[1].search(/[a-zA-Z]\$$/) === 0) {
|
|
123580
123580
|
if (length2 === 2)
|
|
123581
123581
|
return 2;
|
|
123582
|
-
|
|
123582
|
+
indexAfterOsRoot = 2;
|
|
123583
123583
|
isDosStyle = true;
|
|
123584
123584
|
}
|
|
123585
|
-
if (isDosStyle && !pathComponents2[
|
|
123586
|
-
return
|
|
123585
|
+
if (isDosStyle && !pathComponents2[indexAfterOsRoot].match(/^users$/i)) {
|
|
123586
|
+
return indexAfterOsRoot;
|
|
123587
123587
|
}
|
|
123588
|
-
|
|
123588
|
+
if (pathComponents2[indexAfterOsRoot].match(/^workspaces$/i)) {
|
|
123589
|
+
return indexAfterOsRoot + 1;
|
|
123590
|
+
}
|
|
123591
|
+
return indexAfterOsRoot + 2;
|
|
123589
123592
|
}
|
|
123590
123593
|
function canWatchDirectoryOrFile(pathComponents2, length2) {
|
|
123591
123594
|
if (length2 === void 0)
|
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.3.0-pr-
|
|
5
|
+
"version": "5.3.0-pr-55738-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "c5138a6d823a3d7b9ba0ed6dedb5834864af4d45"
|
|
117
117
|
}
|