@typescript-deploys/pr-build 5.3.0-pr-55718-6 → 5.3.0-pr-55727-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 +27 -11
- package/lib/tsserver.js +37 -14
- package/lib/typescript.js +37 -14
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230913`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -36691,7 +36691,7 @@ function hasFileWithHigherPriorityExtension(file, literalFiles, wildcardFiles, e
|
|
|
36691
36691
|
return false;
|
|
36692
36692
|
}
|
|
36693
36693
|
for (const ext of extensionGroup) {
|
|
36694
|
-
if (fileExtensionIs(file, ext)) {
|
|
36694
|
+
if (fileExtensionIs(file, ext) && (ext !== ".ts" /* Ts */ || !fileExtensionIs(file, ".d.ts" /* Dts */))) {
|
|
36695
36695
|
return false;
|
|
36696
36696
|
}
|
|
36697
36697
|
const higherPriorityPath = keyMapper(changeExtension(file, ext));
|
|
@@ -73972,11 +73972,7 @@ function createTypeChecker(host) {
|
|
|
73972
73972
|
error(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
|
|
73973
73973
|
}
|
|
73974
73974
|
checkNaNEquality(errorNode, operator, left, right);
|
|
73975
|
-
|
|
73976
|
-
error(errorNode, Diagnostics.This_condition_will_always_return_0, operator === 37 /* EqualsEqualsEqualsToken */ || operator === 35 /* EqualsEqualsToken */ ? "true" : "false");
|
|
73977
|
-
} else {
|
|
73978
|
-
reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));
|
|
73979
|
-
}
|
|
73975
|
+
reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));
|
|
73980
73976
|
}
|
|
73981
73977
|
return booleanType;
|
|
73982
73978
|
case 104 /* InstanceOfKeyword */:
|
|
@@ -81958,11 +81954,11 @@ function createTypeChecker(host) {
|
|
|
81958
81954
|
if (fileToDirective.has(file.path))
|
|
81959
81955
|
return;
|
|
81960
81956
|
fileToDirective.set(file.path, [key, mode]);
|
|
81961
|
-
for (const { fileName
|
|
81957
|
+
for (const { fileName } of file.referencedFiles) {
|
|
81962
81958
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
81963
81959
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
81964
81960
|
if (referencedFile) {
|
|
81965
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
81961
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
81966
81962
|
}
|
|
81967
81963
|
}
|
|
81968
81964
|
}
|
|
@@ -114472,7 +114468,8 @@ function isIgnoredFileFromWildCardWatching({
|
|
|
114472
114468
|
currentDirectory,
|
|
114473
114469
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
114474
114470
|
writeLog,
|
|
114475
|
-
toPath: toPath3
|
|
114471
|
+
toPath: toPath3,
|
|
114472
|
+
getScriptKind
|
|
114476
114473
|
}) {
|
|
114477
114474
|
const newPath = removeIgnoredPath(fileOrDirectoryPath);
|
|
114478
114475
|
if (!newPath) {
|
|
@@ -114482,7 +114479,7 @@ function isIgnoredFileFromWildCardWatching({
|
|
|
114482
114479
|
fileOrDirectoryPath = newPath;
|
|
114483
114480
|
if (fileOrDirectoryPath === watchedDirPath)
|
|
114484
114481
|
return false;
|
|
114485
|
-
if (hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
|
|
114482
|
+
if (hasExtension(fileOrDirectoryPath) && !(isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions) || isSupportedScriptKind())) {
|
|
114486
114483
|
writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
|
114487
114484
|
return true;
|
|
114488
114485
|
}
|
|
@@ -114511,6 +114508,25 @@ function isIgnoredFileFromWildCardWatching({
|
|
|
114511
114508
|
function hasSourceFile(file) {
|
|
114512
114509
|
return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.getState().fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file);
|
|
114513
114510
|
}
|
|
114511
|
+
function isSupportedScriptKind() {
|
|
114512
|
+
if (!getScriptKind)
|
|
114513
|
+
return false;
|
|
114514
|
+
const scriptKind = getScriptKind(fileOrDirectory);
|
|
114515
|
+
switch (scriptKind) {
|
|
114516
|
+
case 3 /* TS */:
|
|
114517
|
+
case 4 /* TSX */:
|
|
114518
|
+
case 7 /* Deferred */:
|
|
114519
|
+
case 5 /* External */:
|
|
114520
|
+
return true;
|
|
114521
|
+
case 1 /* JS */:
|
|
114522
|
+
case 2 /* JSX */:
|
|
114523
|
+
return getAllowJSCompilerOption(options);
|
|
114524
|
+
case 6 /* JSON */:
|
|
114525
|
+
return getResolveJsonModule(options);
|
|
114526
|
+
case 0 /* Unknown */:
|
|
114527
|
+
return false;
|
|
114528
|
+
}
|
|
114529
|
+
}
|
|
114514
114530
|
}
|
|
114515
114531
|
function isBuilderProgram(program) {
|
|
114516
114532
|
return !!program.getState;
|
package/lib/tsserver.js
CHANGED
|
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2327
2327
|
|
|
2328
2328
|
// src/compiler/corePublic.ts
|
|
2329
2329
|
var versionMajorMinor = "5.3";
|
|
2330
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2330
|
+
var version = `${versionMajorMinor}.0-insiders.20230913`;
|
|
2331
2331
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2332
2332
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2333
2333
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -41122,7 +41122,7 @@ function hasFileWithHigherPriorityExtension(file, literalFiles, wildcardFiles, e
|
|
|
41122
41122
|
return false;
|
|
41123
41123
|
}
|
|
41124
41124
|
for (const ext of extensionGroup) {
|
|
41125
|
-
if (fileExtensionIs(file, ext)) {
|
|
41125
|
+
if (fileExtensionIs(file, ext) && (ext !== ".ts" /* Ts */ || !fileExtensionIs(file, ".d.ts" /* Dts */))) {
|
|
41126
41126
|
return false;
|
|
41127
41127
|
}
|
|
41128
41128
|
const higherPriorityPath = keyMapper(changeExtension(file, ext));
|
|
@@ -78674,11 +78674,7 @@ function createTypeChecker(host) {
|
|
|
78674
78674
|
error2(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
|
|
78675
78675
|
}
|
|
78676
78676
|
checkNaNEquality(errorNode, operator, left, right);
|
|
78677
|
-
|
|
78678
|
-
error2(errorNode, Diagnostics.This_condition_will_always_return_0, operator === 37 /* EqualsEqualsEqualsToken */ || operator === 35 /* EqualsEqualsToken */ ? "true" : "false");
|
|
78679
|
-
} else {
|
|
78680
|
-
reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));
|
|
78681
|
-
}
|
|
78677
|
+
reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));
|
|
78682
78678
|
}
|
|
78683
78679
|
return booleanType;
|
|
78684
78680
|
case 104 /* InstanceOfKeyword */:
|
|
@@ -86660,11 +86656,11 @@ function createTypeChecker(host) {
|
|
|
86660
86656
|
if (fileToDirective.has(file.path))
|
|
86661
86657
|
return;
|
|
86662
86658
|
fileToDirective.set(file.path, [key, mode]);
|
|
86663
|
-
for (const { fileName
|
|
86659
|
+
for (const { fileName } of file.referencedFiles) {
|
|
86664
86660
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
86665
86661
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
86666
86662
|
if (referencedFile) {
|
|
86667
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
86663
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
86668
86664
|
}
|
|
86669
86665
|
}
|
|
86670
86666
|
}
|
|
@@ -119373,7 +119369,8 @@ function isIgnoredFileFromWildCardWatching({
|
|
|
119373
119369
|
currentDirectory,
|
|
119374
119370
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
119375
119371
|
writeLog,
|
|
119376
|
-
toPath: toPath3
|
|
119372
|
+
toPath: toPath3,
|
|
119373
|
+
getScriptKind: getScriptKind2
|
|
119377
119374
|
}) {
|
|
119378
119375
|
const newPath = removeIgnoredPath(fileOrDirectoryPath);
|
|
119379
119376
|
if (!newPath) {
|
|
@@ -119383,7 +119380,7 @@ function isIgnoredFileFromWildCardWatching({
|
|
|
119383
119380
|
fileOrDirectoryPath = newPath;
|
|
119384
119381
|
if (fileOrDirectoryPath === watchedDirPath)
|
|
119385
119382
|
return false;
|
|
119386
|
-
if (hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
|
|
119383
|
+
if (hasExtension(fileOrDirectoryPath) && !(isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions) || isSupportedScriptKind())) {
|
|
119387
119384
|
writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
|
119388
119385
|
return true;
|
|
119389
119386
|
}
|
|
@@ -119412,6 +119409,25 @@ function isIgnoredFileFromWildCardWatching({
|
|
|
119412
119409
|
function hasSourceFile(file) {
|
|
119413
119410
|
return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.getState().fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file);
|
|
119414
119411
|
}
|
|
119412
|
+
function isSupportedScriptKind() {
|
|
119413
|
+
if (!getScriptKind2)
|
|
119414
|
+
return false;
|
|
119415
|
+
const scriptKind = getScriptKind2(fileOrDirectory);
|
|
119416
|
+
switch (scriptKind) {
|
|
119417
|
+
case 3 /* TS */:
|
|
119418
|
+
case 4 /* TSX */:
|
|
119419
|
+
case 7 /* Deferred */:
|
|
119420
|
+
case 5 /* External */:
|
|
119421
|
+
return true;
|
|
119422
|
+
case 1 /* JS */:
|
|
119423
|
+
case 2 /* JSX */:
|
|
119424
|
+
return getAllowJSCompilerOption(options);
|
|
119425
|
+
case 6 /* JSON */:
|
|
119426
|
+
return getResolveJsonModule(options);
|
|
119427
|
+
case 0 /* Unknown */:
|
|
119428
|
+
return false;
|
|
119429
|
+
}
|
|
119430
|
+
}
|
|
119415
119431
|
}
|
|
119416
119432
|
function isBuilderProgram(program) {
|
|
119417
119433
|
return !!program.getState;
|
|
@@ -169698,7 +169714,7 @@ function getAllRules() {
|
|
|
169698
169714
|
// insert space after '?' only when it is used in conditional operator
|
|
169699
169715
|
rule("SpaceAfterQuestionMarkInConditionalOperator", 58 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* InsertSpace */),
|
|
169700
169716
|
// in other cases there should be no space between '?' and next token
|
|
169701
|
-
rule("NoSpaceAfterQuestionMark", 58 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),
|
|
169717
|
+
rule("NoSpaceAfterQuestionMark", 58 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isNonOptionalPropertyContext], 16 /* DeleteSpace */),
|
|
169702
169718
|
rule("NoSpaceBeforeDot", anyToken, [25 /* DotToken */, 29 /* QuestionDotToken */], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnIntegerLiteral], 16 /* DeleteSpace */),
|
|
169703
169719
|
rule("NoSpaceAfterDot", [25 /* DotToken */, 29 /* QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),
|
|
169704
169720
|
rule("NoSpaceBetweenImportParenInImportType", 102 /* ImportKeyword */, 21 /* OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* DeleteSpace */),
|
|
@@ -170043,6 +170059,12 @@ function isTypeAnnotationContext(context) {
|
|
|
170043
170059
|
const contextKind = context.contextNode.kind;
|
|
170044
170060
|
return contextKind === 172 /* PropertyDeclaration */ || contextKind === 171 /* PropertySignature */ || contextKind === 169 /* Parameter */ || contextKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(contextKind);
|
|
170045
170061
|
}
|
|
170062
|
+
function isOptionalPropertyContext(context) {
|
|
170063
|
+
return isPropertyDeclaration(context.contextNode) && context.contextNode.questionToken;
|
|
170064
|
+
}
|
|
170065
|
+
function isNonOptionalPropertyContext(context) {
|
|
170066
|
+
return !isOptionalPropertyContext(context);
|
|
170067
|
+
}
|
|
170046
170068
|
function isConditionalOperatorContext(context) {
|
|
170047
170069
|
return context.contextNode.kind === 227 /* ConditionalExpression */ || context.contextNode.kind === 194 /* ConditionalType */;
|
|
170048
170070
|
}
|
|
@@ -176190,7 +176212,7 @@ var Project3 = class _Project {
|
|
|
176190
176212
|
return scriptInfo;
|
|
176191
176213
|
}
|
|
176192
176214
|
getScriptKind(fileName) {
|
|
176193
|
-
const info = this.
|
|
176215
|
+
const info = this.projectService.getScriptInfoForPath(this.toPath(fileName));
|
|
176194
176216
|
return info && info.scriptKind;
|
|
176195
176217
|
}
|
|
176196
176218
|
getScriptVersion(filename) {
|
|
@@ -179007,7 +179029,8 @@ var _ProjectService = class _ProjectService {
|
|
|
179007
179029
|
program: (configuredProjectForConfig == null ? void 0 : configuredProjectForConfig.getCurrentProgram()) || config.parsedCommandLine.fileNames,
|
|
179008
179030
|
useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames,
|
|
179009
179031
|
writeLog: (s) => this.logger.info(s),
|
|
179010
|
-
toPath: (s) => this.toPath(s)
|
|
179032
|
+
toPath: (s) => this.toPath(s),
|
|
179033
|
+
getScriptKind: configuredProjectForConfig ? (fileName) => configuredProjectForConfig.getScriptKind(fileName) : void 0
|
|
179011
179034
|
}))
|
|
179012
179035
|
return;
|
|
179013
179036
|
if (config.reloadLevel !== 2 /* Full */)
|
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.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230913`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -37443,7 +37443,7 @@ ${lanes.join("\n")}
|
|
|
37443
37443
|
return false;
|
|
37444
37444
|
}
|
|
37445
37445
|
for (const ext of extensionGroup) {
|
|
37446
|
-
if (fileExtensionIs(file, ext)) {
|
|
37446
|
+
if (fileExtensionIs(file, ext) && (ext !== ".ts" /* Ts */ || !fileExtensionIs(file, ".d.ts" /* Dts */))) {
|
|
37447
37447
|
return false;
|
|
37448
37448
|
}
|
|
37449
37449
|
const higherPriorityPath = keyMapper(changeExtension(file, ext));
|
|
@@ -76441,11 +76441,7 @@ ${lanes.join("\n")}
|
|
|
76441
76441
|
error2(errorNode, Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
|
|
76442
76442
|
}
|
|
76443
76443
|
checkNaNEquality(errorNode, operator, left, right);
|
|
76444
|
-
|
|
76445
|
-
error2(errorNode, Diagnostics.This_condition_will_always_return_0, operator === 37 /* EqualsEqualsEqualsToken */ || operator === 35 /* EqualsEqualsToken */ ? "true" : "false");
|
|
76446
|
-
} else {
|
|
76447
|
-
reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));
|
|
76448
|
-
}
|
|
76444
|
+
reportOperatorErrorUnless((left2, right2) => isTypeEqualityComparableTo(left2, right2) || isTypeEqualityComparableTo(right2, left2));
|
|
76449
76445
|
}
|
|
76450
76446
|
return booleanType;
|
|
76451
76447
|
case 104 /* InstanceOfKeyword */:
|
|
@@ -84427,11 +84423,11 @@ ${lanes.join("\n")}
|
|
|
84427
84423
|
if (fileToDirective.has(file.path))
|
|
84428
84424
|
return;
|
|
84429
84425
|
fileToDirective.set(file.path, [key, mode]);
|
|
84430
|
-
for (const { fileName
|
|
84426
|
+
for (const { fileName } of file.referencedFiles) {
|
|
84431
84427
|
const resolvedFile = resolveTripleslashReference(fileName, file.fileName);
|
|
84432
84428
|
const referencedFile = host.getSourceFile(resolvedFile);
|
|
84433
84429
|
if (referencedFile) {
|
|
84434
|
-
addReferencedFilesToTypeDirective(referencedFile, key,
|
|
84430
|
+
addReferencedFilesToTypeDirective(referencedFile, key, mode || file.impliedNodeFormat);
|
|
84435
84431
|
}
|
|
84436
84432
|
}
|
|
84437
84433
|
}
|
|
@@ -117470,7 +117466,8 @@ ${lanes.join("\n")}
|
|
|
117470
117466
|
currentDirectory,
|
|
117471
117467
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
117472
117468
|
writeLog,
|
|
117473
|
-
toPath: toPath3
|
|
117469
|
+
toPath: toPath3,
|
|
117470
|
+
getScriptKind: getScriptKind2
|
|
117474
117471
|
}) {
|
|
117475
117472
|
const newPath = removeIgnoredPath(fileOrDirectoryPath);
|
|
117476
117473
|
if (!newPath) {
|
|
@@ -117480,7 +117477,7 @@ ${lanes.join("\n")}
|
|
|
117480
117477
|
fileOrDirectoryPath = newPath;
|
|
117481
117478
|
if (fileOrDirectoryPath === watchedDirPath)
|
|
117482
117479
|
return false;
|
|
117483
|
-
if (hasExtension(fileOrDirectoryPath) && !isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {
|
|
117480
|
+
if (hasExtension(fileOrDirectoryPath) && !(isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions) || isSupportedScriptKind())) {
|
|
117484
117481
|
writeLog(`Project: ${configFileName} Detected file add/remove of non supported extension: ${fileOrDirectory}`);
|
|
117485
117482
|
return true;
|
|
117486
117483
|
}
|
|
@@ -117509,6 +117506,25 @@ ${lanes.join("\n")}
|
|
|
117509
117506
|
function hasSourceFile(file) {
|
|
117510
117507
|
return realProgram ? !!realProgram.getSourceFileByPath(file) : builderProgram ? builderProgram.getState().fileInfos.has(file) : !!find(program, (rootFile) => toPath3(rootFile) === file);
|
|
117511
117508
|
}
|
|
117509
|
+
function isSupportedScriptKind() {
|
|
117510
|
+
if (!getScriptKind2)
|
|
117511
|
+
return false;
|
|
117512
|
+
const scriptKind = getScriptKind2(fileOrDirectory);
|
|
117513
|
+
switch (scriptKind) {
|
|
117514
|
+
case 3 /* TS */:
|
|
117515
|
+
case 4 /* TSX */:
|
|
117516
|
+
case 7 /* Deferred */:
|
|
117517
|
+
case 5 /* External */:
|
|
117518
|
+
return true;
|
|
117519
|
+
case 1 /* JS */:
|
|
117520
|
+
case 2 /* JSX */:
|
|
117521
|
+
return getAllowJSCompilerOption(options);
|
|
117522
|
+
case 6 /* JSON */:
|
|
117523
|
+
return getResolveJsonModule(options);
|
|
117524
|
+
case 0 /* Unknown */:
|
|
117525
|
+
return false;
|
|
117526
|
+
}
|
|
117527
|
+
}
|
|
117512
117528
|
}
|
|
117513
117529
|
function isBuilderProgram(program) {
|
|
117514
117530
|
return !!program.getState;
|
|
@@ -169170,7 +169186,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
169170
169186
|
// insert space after '?' only when it is used in conditional operator
|
|
169171
169187
|
rule("SpaceAfterQuestionMarkInConditionalOperator", 58 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* InsertSpace */),
|
|
169172
169188
|
// in other cases there should be no space between '?' and next token
|
|
169173
|
-
rule("NoSpaceAfterQuestionMark", 58 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),
|
|
169189
|
+
rule("NoSpaceAfterQuestionMark", 58 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isNonOptionalPropertyContext], 16 /* DeleteSpace */),
|
|
169174
169190
|
rule("NoSpaceBeforeDot", anyToken, [25 /* DotToken */, 29 /* QuestionDotToken */], [isNonJsxSameLineTokenContext, isNotPropertyAccessOnIntegerLiteral], 16 /* DeleteSpace */),
|
|
169175
169191
|
rule("NoSpaceAfterDot", [25 /* DotToken */, 29 /* QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),
|
|
169176
169192
|
rule("NoSpaceBetweenImportParenInImportType", 102 /* ImportKeyword */, 21 /* OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* DeleteSpace */),
|
|
@@ -169515,6 +169531,12 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
169515
169531
|
const contextKind = context.contextNode.kind;
|
|
169516
169532
|
return contextKind === 172 /* PropertyDeclaration */ || contextKind === 171 /* PropertySignature */ || contextKind === 169 /* Parameter */ || contextKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(contextKind);
|
|
169517
169533
|
}
|
|
169534
|
+
function isOptionalPropertyContext(context) {
|
|
169535
|
+
return isPropertyDeclaration(context.contextNode) && context.contextNode.questionToken;
|
|
169536
|
+
}
|
|
169537
|
+
function isNonOptionalPropertyContext(context) {
|
|
169538
|
+
return !isOptionalPropertyContext(context);
|
|
169539
|
+
}
|
|
169518
169540
|
function isConditionalOperatorContext(context) {
|
|
169519
169541
|
return context.contextNode.kind === 227 /* ConditionalExpression */ || context.contextNode.kind === 194 /* ConditionalType */;
|
|
169520
169542
|
}
|
|
@@ -173532,7 +173554,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
173532
173554
|
return scriptInfo;
|
|
173533
173555
|
}
|
|
173534
173556
|
getScriptKind(fileName) {
|
|
173535
|
-
const info = this.
|
|
173557
|
+
const info = this.projectService.getScriptInfoForPath(this.toPath(fileName));
|
|
173536
173558
|
return info && info.scriptKind;
|
|
173537
173559
|
}
|
|
173538
173560
|
getScriptVersion(filename) {
|
|
@@ -176353,7 +176375,8 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
176353
176375
|
program: (configuredProjectForConfig == null ? void 0 : configuredProjectForConfig.getCurrentProgram()) || config.parsedCommandLine.fileNames,
|
|
176354
176376
|
useCaseSensitiveFileNames: this.host.useCaseSensitiveFileNames,
|
|
176355
176377
|
writeLog: (s) => this.logger.info(s),
|
|
176356
|
-
toPath: (s) => this.toPath(s)
|
|
176378
|
+
toPath: (s) => this.toPath(s),
|
|
176379
|
+
getScriptKind: configuredProjectForConfig ? (fileName) => configuredProjectForConfig.getScriptKind(fileName) : void 0
|
|
176357
176380
|
}))
|
|
176358
176381
|
return;
|
|
176359
176382
|
if (config.reloadLevel !== 2 /* Full */)
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230913`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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-55727-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": "93ec2799df89a9621eb6cc3c4bf2367d6b6c0436"
|
|
117
117
|
}
|