@typescript-deploys/pr-build 5.4.0-pr-56404-7 → 5.4.0-pr-55774-37
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 +34 -13
- package/lib/tsserver.js +35 -13
- package/lib/typescript.js +35 -13
- package/lib/typingsInstaller.js +18 -3
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -4521,6 +4521,7 @@ function createSystemWatchFunctions({
|
|
|
4521
4521
|
useNonPollingWatchers,
|
|
4522
4522
|
tscWatchDirectory,
|
|
4523
4523
|
inodeWatching,
|
|
4524
|
+
fsWatchWithTimestamp,
|
|
4524
4525
|
sysLog: sysLog2
|
|
4525
4526
|
}) {
|
|
4526
4527
|
const pollingWatches = /* @__PURE__ */ new Map();
|
|
@@ -4759,7 +4760,7 @@ function createSystemWatchFunctions({
|
|
|
4759
4760
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
4760
4761
|
}
|
|
4761
4762
|
try {
|
|
4762
|
-
const presentWatcher = fsWatchWorker(
|
|
4763
|
+
const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
|
|
4763
4764
|
fileOrDirectory,
|
|
4764
4765
|
recursive,
|
|
4765
4766
|
inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
|
|
@@ -4822,6 +4823,18 @@ function createSystemWatchFunctions({
|
|
|
4822
4823
|
);
|
|
4823
4824
|
}
|
|
4824
4825
|
}
|
|
4826
|
+
function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
|
|
4827
|
+
let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
|
|
4828
|
+
return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
|
|
4829
|
+
if (eventName === "change") {
|
|
4830
|
+
currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);
|
|
4831
|
+
if (currentModifiedTime.getTime() === modifiedTime.getTime())
|
|
4832
|
+
return;
|
|
4833
|
+
}
|
|
4834
|
+
modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
|
|
4835
|
+
callback(eventName, relativeFileName, modifiedTime);
|
|
4836
|
+
});
|
|
4837
|
+
}
|
|
4825
4838
|
}
|
|
4826
4839
|
function patchWriteFileEnsuringDirectory(sys2) {
|
|
4827
4840
|
const originalWriteFile = sys2.writeFile;
|
|
@@ -4850,12 +4863,13 @@ var sys = (() => {
|
|
|
4850
4863
|
let activeSession;
|
|
4851
4864
|
let profilePath = "./profile.cpuprofile";
|
|
4852
4865
|
const Buffer = require("buffer").Buffer;
|
|
4853
|
-
const
|
|
4866
|
+
const isMacOs = process.platform === "darwin";
|
|
4867
|
+
const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
|
|
4854
4868
|
const platform = _os.platform();
|
|
4855
4869
|
const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
|
|
4856
4870
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
4857
4871
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
4858
|
-
const fsSupportsRecursiveFsWatch = process.platform === "win32" ||
|
|
4872
|
+
const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
|
|
4859
4873
|
const getCurrentDirectory = memoize(() => process.cwd());
|
|
4860
4874
|
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
|
4861
4875
|
pollingWatchFileWorker: fsWatchFileWorker,
|
|
@@ -4875,6 +4889,7 @@ var sys = (() => {
|
|
|
4875
4889
|
useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
|
|
4876
4890
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
4877
4891
|
inodeWatching: isLinuxOrMacOs,
|
|
4892
|
+
fsWatchWithTimestamp: isMacOs,
|
|
4878
4893
|
sysLog
|
|
4879
4894
|
});
|
|
4880
4895
|
const nodeSystem = {
|
|
@@ -48232,15 +48247,13 @@ function createTypeChecker(host) {
|
|
|
48232
48247
|
}
|
|
48233
48248
|
const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
|
|
48234
48249
|
if (cachedResult) {
|
|
48235
|
-
|
|
48236
|
-
(
|
|
48237
|
-
|
|
48238
|
-
|
|
48239
|
-
|
|
48240
|
-
|
|
48241
|
-
|
|
48242
|
-
);
|
|
48243
|
-
}
|
|
48250
|
+
(_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
|
|
48251
|
+
([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
|
|
48252
|
+
symbol,
|
|
48253
|
+
enclosingDeclaration,
|
|
48254
|
+
meaning
|
|
48255
|
+
)
|
|
48256
|
+
);
|
|
48244
48257
|
if (cachedResult.truncating) {
|
|
48245
48258
|
context.truncating = true;
|
|
48246
48259
|
}
|
|
@@ -54225,6 +54238,14 @@ function createTypeChecker(host) {
|
|
|
54225
54238
|
return getCheckFlags(s) & 4096 /* Late */;
|
|
54226
54239
|
}
|
|
54227
54240
|
function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {
|
|
54241
|
+
if (isTupleType(type)) {
|
|
54242
|
+
forEachType(getUnionType(getElementTypes(type).map((_, i) => getStringLiteralType("" + i))), cb);
|
|
54243
|
+
return;
|
|
54244
|
+
}
|
|
54245
|
+
if (isArrayType(type)) {
|
|
54246
|
+
cb(numberType);
|
|
54247
|
+
return;
|
|
54248
|
+
}
|
|
54228
54249
|
for (const prop of getPropertiesOfType(type)) {
|
|
54229
54250
|
cb(getLiteralTypeFromProperty(prop, include));
|
|
54230
54251
|
}
|
|
@@ -56061,7 +56082,7 @@ function createTypeChecker(host) {
|
|
|
56061
56082
|
if (constraint) {
|
|
56062
56083
|
constraints = append(constraints, constraint);
|
|
56063
56084
|
}
|
|
56064
|
-
} else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && node === parent.type) {
|
|
56085
|
+
} else if (type.flags & 262144 /* TypeParameter */ && parent.kind === 200 /* MappedType */ && (node === parent.type || node === parent.nameType)) {
|
|
56065
56086
|
const mappedType = getTypeFromTypeNode(parent);
|
|
56066
56087
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
56067
56088
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
package/lib/tsserver.js
CHANGED
|
@@ -8041,6 +8041,7 @@ function createSystemWatchFunctions({
|
|
|
8041
8041
|
useNonPollingWatchers,
|
|
8042
8042
|
tscWatchDirectory,
|
|
8043
8043
|
inodeWatching,
|
|
8044
|
+
fsWatchWithTimestamp,
|
|
8044
8045
|
sysLog: sysLog2
|
|
8045
8046
|
}) {
|
|
8046
8047
|
const pollingWatches = /* @__PURE__ */ new Map();
|
|
@@ -8279,7 +8280,7 @@ function createSystemWatchFunctions({
|
|
|
8279
8280
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
8280
8281
|
}
|
|
8281
8282
|
try {
|
|
8282
|
-
const presentWatcher = fsWatchWorker(
|
|
8283
|
+
const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
|
|
8283
8284
|
fileOrDirectory,
|
|
8284
8285
|
recursive,
|
|
8285
8286
|
inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
|
|
@@ -8342,6 +8343,18 @@ function createSystemWatchFunctions({
|
|
|
8342
8343
|
);
|
|
8343
8344
|
}
|
|
8344
8345
|
}
|
|
8346
|
+
function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
|
|
8347
|
+
let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
|
|
8348
|
+
return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
|
|
8349
|
+
if (eventName === "change") {
|
|
8350
|
+
currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);
|
|
8351
|
+
if (currentModifiedTime.getTime() === modifiedTime.getTime())
|
|
8352
|
+
return;
|
|
8353
|
+
}
|
|
8354
|
+
modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
|
|
8355
|
+
callback(eventName, relativeFileName, modifiedTime);
|
|
8356
|
+
});
|
|
8357
|
+
}
|
|
8345
8358
|
}
|
|
8346
8359
|
function patchWriteFileEnsuringDirectory(sys2) {
|
|
8347
8360
|
const originalWriteFile = sys2.writeFile;
|
|
@@ -8370,12 +8383,13 @@ var sys = (() => {
|
|
|
8370
8383
|
let activeSession;
|
|
8371
8384
|
let profilePath = "./profile.cpuprofile";
|
|
8372
8385
|
const Buffer2 = require("buffer").Buffer;
|
|
8373
|
-
const
|
|
8386
|
+
const isMacOs = process.platform === "darwin";
|
|
8387
|
+
const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
|
|
8374
8388
|
const platform = _os.platform();
|
|
8375
8389
|
const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
|
|
8376
8390
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
8377
8391
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
8378
|
-
const fsSupportsRecursiveFsWatch = process.platform === "win32" ||
|
|
8392
|
+
const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
|
|
8379
8393
|
const getCurrentDirectory = memoize(() => process.cwd());
|
|
8380
8394
|
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
|
8381
8395
|
pollingWatchFileWorker: fsWatchFileWorker,
|
|
@@ -8395,6 +8409,7 @@ var sys = (() => {
|
|
|
8395
8409
|
useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
|
|
8396
8410
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
8397
8411
|
inodeWatching: isLinuxOrMacOs,
|
|
8412
|
+
fsWatchWithTimestamp: isMacOs,
|
|
8398
8413
|
sysLog
|
|
8399
8414
|
});
|
|
8400
8415
|
const nodeSystem = {
|
|
@@ -52940,15 +52955,13 @@ function createTypeChecker(host) {
|
|
|
52940
52955
|
}
|
|
52941
52956
|
const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
|
|
52942
52957
|
if (cachedResult) {
|
|
52943
|
-
|
|
52944
|
-
(
|
|
52945
|
-
|
|
52946
|
-
|
|
52947
|
-
|
|
52948
|
-
|
|
52949
|
-
|
|
52950
|
-
);
|
|
52951
|
-
}
|
|
52958
|
+
(_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
|
|
52959
|
+
([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
|
|
52960
|
+
symbol,
|
|
52961
|
+
enclosingDeclaration,
|
|
52962
|
+
meaning
|
|
52963
|
+
)
|
|
52964
|
+
);
|
|
52952
52965
|
if (cachedResult.truncating) {
|
|
52953
52966
|
context.truncating = true;
|
|
52954
52967
|
}
|
|
@@ -58933,6 +58946,14 @@ function createTypeChecker(host) {
|
|
|
58933
58946
|
return getCheckFlags(s) & 4096 /* Late */;
|
|
58934
58947
|
}
|
|
58935
58948
|
function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {
|
|
58949
|
+
if (isTupleType(type)) {
|
|
58950
|
+
forEachType(getUnionType(getElementTypes(type).map((_, i) => getStringLiteralType("" + i))), cb);
|
|
58951
|
+
return;
|
|
58952
|
+
}
|
|
58953
|
+
if (isArrayType(type)) {
|
|
58954
|
+
cb(numberType);
|
|
58955
|
+
return;
|
|
58956
|
+
}
|
|
58936
58957
|
for (const prop of getPropertiesOfType(type)) {
|
|
58937
58958
|
cb(getLiteralTypeFromProperty(prop, include));
|
|
58938
58959
|
}
|
|
@@ -60769,7 +60790,7 @@ function createTypeChecker(host) {
|
|
|
60769
60790
|
if (constraint) {
|
|
60770
60791
|
constraints = append(constraints, constraint);
|
|
60771
60792
|
}
|
|
60772
|
-
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
|
|
60793
|
+
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && (node === parent2.type || node === parent2.nameType)) {
|
|
60773
60794
|
const mappedType = getTypeFromTypeNode(parent2);
|
|
60774
60795
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
60775
60796
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
@@ -135738,6 +135759,7 @@ var DocumentHighlights;
|
|
|
135738
135759
|
case 127 /* YieldKeyword */:
|
|
135739
135760
|
return highlightSpans(getYieldOccurrences(node));
|
|
135740
135761
|
case 103 /* InKeyword */:
|
|
135762
|
+
case 147 /* OutKeyword */:
|
|
135741
135763
|
return void 0;
|
|
135742
135764
|
default:
|
|
135743
135765
|
return isModifierKind(node.kind) && (isDeclaration(node.parent) || isVariableStatement(node.parent)) ? highlightSpans(getModifierOccurrences(node.kind, node.parent)) : void 0;
|
package/lib/typescript.js
CHANGED
|
@@ -5779,6 +5779,7 @@ ${lanes.join("\n")}
|
|
|
5779
5779
|
useNonPollingWatchers,
|
|
5780
5780
|
tscWatchDirectory,
|
|
5781
5781
|
inodeWatching,
|
|
5782
|
+
fsWatchWithTimestamp,
|
|
5782
5783
|
sysLog: sysLog2
|
|
5783
5784
|
}) {
|
|
5784
5785
|
const pollingWatches = /* @__PURE__ */ new Map();
|
|
@@ -6017,7 +6018,7 @@ ${lanes.join("\n")}
|
|
|
6017
6018
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
6018
6019
|
}
|
|
6019
6020
|
try {
|
|
6020
|
-
const presentWatcher = fsWatchWorker(
|
|
6021
|
+
const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
|
|
6021
6022
|
fileOrDirectory,
|
|
6022
6023
|
recursive,
|
|
6023
6024
|
inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
|
|
@@ -6080,6 +6081,18 @@ ${lanes.join("\n")}
|
|
|
6080
6081
|
);
|
|
6081
6082
|
}
|
|
6082
6083
|
}
|
|
6084
|
+
function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
|
|
6085
|
+
let modifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
|
|
6086
|
+
return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
|
|
6087
|
+
if (eventName === "change") {
|
|
6088
|
+
currentModifiedTime || (currentModifiedTime = getModifiedTime3(fileOrDirectory) || missingFileModifiedTime);
|
|
6089
|
+
if (currentModifiedTime.getTime() === modifiedTime.getTime())
|
|
6090
|
+
return;
|
|
6091
|
+
}
|
|
6092
|
+
modifiedTime = currentModifiedTime || getModifiedTime3(fileOrDirectory) || missingFileModifiedTime;
|
|
6093
|
+
callback(eventName, relativeFileName, modifiedTime);
|
|
6094
|
+
});
|
|
6095
|
+
}
|
|
6083
6096
|
}
|
|
6084
6097
|
function patchWriteFileEnsuringDirectory(sys2) {
|
|
6085
6098
|
const originalWriteFile = sys2.writeFile;
|
|
@@ -6139,12 +6152,13 @@ ${lanes.join("\n")}
|
|
|
6139
6152
|
let activeSession;
|
|
6140
6153
|
let profilePath = "./profile.cpuprofile";
|
|
6141
6154
|
const Buffer2 = require("buffer").Buffer;
|
|
6142
|
-
const
|
|
6155
|
+
const isMacOs = process.platform === "darwin";
|
|
6156
|
+
const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
|
|
6143
6157
|
const platform = _os.platform();
|
|
6144
6158
|
const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
|
|
6145
6159
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
6146
6160
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
6147
|
-
const fsSupportsRecursiveFsWatch = process.platform === "win32" ||
|
|
6161
|
+
const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
|
|
6148
6162
|
const getCurrentDirectory = memoize(() => process.cwd());
|
|
6149
6163
|
const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
|
|
6150
6164
|
pollingWatchFileWorker: fsWatchFileWorker,
|
|
@@ -6164,6 +6178,7 @@ ${lanes.join("\n")}
|
|
|
6164
6178
|
useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
|
|
6165
6179
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
6166
6180
|
inodeWatching: isLinuxOrMacOs,
|
|
6181
|
+
fsWatchWithTimestamp: isMacOs,
|
|
6167
6182
|
sysLog
|
|
6168
6183
|
});
|
|
6169
6184
|
const nodeSystem = {
|
|
@@ -50705,15 +50720,13 @@ ${lanes.join("\n")}
|
|
|
50705
50720
|
}
|
|
50706
50721
|
const cachedResult = (_a2 = links == null ? void 0 : links.serializedTypes) == null ? void 0 : _a2.get(key);
|
|
50707
50722
|
if (cachedResult) {
|
|
50708
|
-
|
|
50709
|
-
(
|
|
50710
|
-
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50714
|
-
|
|
50715
|
-
);
|
|
50716
|
-
}
|
|
50723
|
+
(_b2 = cachedResult.trackedSymbols) == null ? void 0 : _b2.forEach(
|
|
50724
|
+
([symbol, enclosingDeclaration, meaning]) => context.tracker.trackSymbol(
|
|
50725
|
+
symbol,
|
|
50726
|
+
enclosingDeclaration,
|
|
50727
|
+
meaning
|
|
50728
|
+
)
|
|
50729
|
+
);
|
|
50717
50730
|
if (cachedResult.truncating) {
|
|
50718
50731
|
context.truncating = true;
|
|
50719
50732
|
}
|
|
@@ -56698,6 +56711,14 @@ ${lanes.join("\n")}
|
|
|
56698
56711
|
return getCheckFlags(s) & 4096 /* Late */;
|
|
56699
56712
|
}
|
|
56700
56713
|
function forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(type, include, stringsOnly, cb) {
|
|
56714
|
+
if (isTupleType(type)) {
|
|
56715
|
+
forEachType(getUnionType(getElementTypes(type).map((_, i) => getStringLiteralType("" + i))), cb);
|
|
56716
|
+
return;
|
|
56717
|
+
}
|
|
56718
|
+
if (isArrayType(type)) {
|
|
56719
|
+
cb(numberType);
|
|
56720
|
+
return;
|
|
56721
|
+
}
|
|
56701
56722
|
for (const prop of getPropertiesOfType(type)) {
|
|
56702
56723
|
cb(getLiteralTypeFromProperty(prop, include));
|
|
56703
56724
|
}
|
|
@@ -58534,7 +58555,7 @@ ${lanes.join("\n")}
|
|
|
58534
58555
|
if (constraint) {
|
|
58535
58556
|
constraints = append(constraints, constraint);
|
|
58536
58557
|
}
|
|
58537
|
-
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && node === parent2.type) {
|
|
58558
|
+
} else if (type.flags & 262144 /* TypeParameter */ && parent2.kind === 200 /* MappedType */ && (node === parent2.type || node === parent2.nameType)) {
|
|
58538
58559
|
const mappedType = getTypeFromTypeNode(parent2);
|
|
58539
58560
|
if (getTypeParameterFromMappedType(mappedType) === getActualTypeVariable(type)) {
|
|
58540
58561
|
const typeParameter = getHomomorphicTypeVariable(mappedType);
|
|
@@ -134069,6 +134090,7 @@ ${lanes.join("\n")}
|
|
|
134069
134090
|
case 127 /* YieldKeyword */:
|
|
134070
134091
|
return highlightSpans(getYieldOccurrences(node));
|
|
134071
134092
|
case 103 /* InKeyword */:
|
|
134093
|
+
case 147 /* OutKeyword */:
|
|
134072
134094
|
return void 0;
|
|
134073
134095
|
default:
|
|
134074
134096
|
return isModifierKind(node.kind) && (isDeclaration(node.parent) || isVariableStatement(node.parent)) ? highlightSpans(getModifierOccurrences(node.kind, node.parent)) : void 0;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -3934,6 +3934,7 @@ function createSystemWatchFunctions({
|
|
|
3934
3934
|
useNonPollingWatchers,
|
|
3935
3935
|
tscWatchDirectory,
|
|
3936
3936
|
inodeWatching,
|
|
3937
|
+
fsWatchWithTimestamp,
|
|
3937
3938
|
sysLog: sysLog2
|
|
3938
3939
|
}) {
|
|
3939
3940
|
const pollingWatches = /* @__PURE__ */ new Map();
|
|
@@ -4172,7 +4173,7 @@ function createSystemWatchFunctions({
|
|
|
4172
4173
|
return watchPresentFileSystemEntryWithFsWatchFile();
|
|
4173
4174
|
}
|
|
4174
4175
|
try {
|
|
4175
|
-
const presentWatcher = fsWatchWorker(
|
|
4176
|
+
const presentWatcher = (!fsWatchWithTimestamp ? fsWatchWorker : fsWatchWorkerHandlingTimestamp)(
|
|
4176
4177
|
fileOrDirectory,
|
|
4177
4178
|
recursive,
|
|
4178
4179
|
inodeWatching ? callbackChangingToMissingFileSystemEntry : callback
|
|
@@ -4235,6 +4236,18 @@ function createSystemWatchFunctions({
|
|
|
4235
4236
|
);
|
|
4236
4237
|
}
|
|
4237
4238
|
}
|
|
4239
|
+
function fsWatchWorkerHandlingTimestamp(fileOrDirectory, recursive, callback) {
|
|
4240
|
+
let modifiedTime = getModifiedTime2(fileOrDirectory) || missingFileModifiedTime;
|
|
4241
|
+
return fsWatchWorker(fileOrDirectory, recursive, (eventName, relativeFileName, currentModifiedTime) => {
|
|
4242
|
+
if (eventName === "change") {
|
|
4243
|
+
currentModifiedTime || (currentModifiedTime = getModifiedTime2(fileOrDirectory) || missingFileModifiedTime);
|
|
4244
|
+
if (currentModifiedTime.getTime() === modifiedTime.getTime())
|
|
4245
|
+
return;
|
|
4246
|
+
}
|
|
4247
|
+
modifiedTime = currentModifiedTime || getModifiedTime2(fileOrDirectory) || missingFileModifiedTime;
|
|
4248
|
+
callback(eventName, relativeFileName, modifiedTime);
|
|
4249
|
+
});
|
|
4250
|
+
}
|
|
4238
4251
|
}
|
|
4239
4252
|
function patchWriteFileEnsuringDirectory(sys2) {
|
|
4240
4253
|
const originalWriteFile = sys2.writeFile;
|
|
@@ -4263,12 +4276,13 @@ var sys = (() => {
|
|
|
4263
4276
|
let activeSession;
|
|
4264
4277
|
let profilePath = "./profile.cpuprofile";
|
|
4265
4278
|
const Buffer2 = require("buffer").Buffer;
|
|
4266
|
-
const
|
|
4279
|
+
const isMacOs = process.platform === "darwin";
|
|
4280
|
+
const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
|
|
4267
4281
|
const platform = _os.platform();
|
|
4268
4282
|
const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
|
|
4269
4283
|
const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
|
|
4270
4284
|
const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
|
|
4271
|
-
const fsSupportsRecursiveFsWatch = process.platform === "win32" ||
|
|
4285
|
+
const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
|
|
4272
4286
|
const getCurrentDirectory = memoize(() => process.cwd());
|
|
4273
4287
|
const { watchFile, watchDirectory } = createSystemWatchFunctions({
|
|
4274
4288
|
pollingWatchFileWorker: fsWatchFileWorker,
|
|
@@ -4288,6 +4302,7 @@ var sys = (() => {
|
|
|
4288
4302
|
useNonPollingWatchers: !!process.env.TSC_NONPOLLING_WATCHER,
|
|
4289
4303
|
tscWatchDirectory: process.env.TSC_WATCHDIRECTORY,
|
|
4290
4304
|
inodeWatching: isLinuxOrMacOs,
|
|
4305
|
+
fsWatchWithTimestamp: isMacOs,
|
|
4291
4306
|
sysLog
|
|
4292
4307
|
});
|
|
4293
4308
|
const nodeSystem = {
|
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-
|
|
5
|
+
"version": "5.4.0-pr-55774-37",
|
|
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": "
|
|
118
|
+
"gitHead": "5dbc02ba770ef61d5f9cbbc9e5aeb1ee2a686529"
|
|
119
119
|
}
|