@typescript-deploys/pr-build 5.8.0-pr-60755-8 → 5.8.0-pr-60800-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 +33 -16
- package/lib/ko/diagnosticMessages.generated.json +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +1 -1
- package/lib/typescript.js +33 -16
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
- package/package.json +1 -1
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.8";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20241217`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -121231,7 +121231,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121231
121231
|
let skipDefaultLib = options.noLib;
|
|
121232
121232
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
121233
121233
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
121234
|
-
|
|
121234
|
+
let programDiagnostics;
|
|
121235
|
+
let reuseConfigDiagnostics = false;
|
|
121236
|
+
let configDiagnostics;
|
|
121235
121237
|
let lazyProgramDiagnosticExplainingFile = [];
|
|
121236
121238
|
const currentDirectory = host.getCurrentDirectory();
|
|
121237
121239
|
const supportedExtensions = getSupportedExtensions(options);
|
|
@@ -121526,6 +121528,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121526
121528
|
resolvedModules,
|
|
121527
121529
|
resolvedTypeReferenceDirectiveNames,
|
|
121528
121530
|
resolvedLibReferences,
|
|
121531
|
+
getConfigDiagnostics: () => configDiagnostics,
|
|
121529
121532
|
getResolvedModule,
|
|
121530
121533
|
getResolvedModuleFromModuleSpecifier,
|
|
121531
121534
|
getResolvedTypeReferenceDirective,
|
|
@@ -121564,12 +121567,19 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121564
121567
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
121565
121568
|
};
|
|
121566
121569
|
onProgramCreateComplete();
|
|
121567
|
-
|
|
121570
|
+
if (!reuseConfigDiagnostics) {
|
|
121571
|
+
verifyCompilerOptions();
|
|
121572
|
+
}
|
|
121568
121573
|
mark("afterProgram");
|
|
121569
121574
|
measure("Program", "beforeProgram", "afterProgram");
|
|
121570
121575
|
(_p = tracing) == null ? void 0 : _p.pop();
|
|
121571
121576
|
return program;
|
|
121572
121577
|
function updateAndGetProgramDiagnostics() {
|
|
121578
|
+
if (programDiagnostics) {
|
|
121579
|
+
return programDiagnostics;
|
|
121580
|
+
}
|
|
121581
|
+
programDiagnostics = createDiagnosticCollection();
|
|
121582
|
+
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => programDiagnostics.add(d));
|
|
121573
121583
|
if (lazyProgramDiagnosticExplainingFile) {
|
|
121574
121584
|
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
|
121575
121585
|
switch (diagnostic.kind) {
|
|
@@ -122084,6 +122094,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
122084
122094
|
}
|
|
122085
122095
|
filesByName.set(path, filesByName.get(oldFile.path));
|
|
122086
122096
|
});
|
|
122097
|
+
if (oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations)) {
|
|
122098
|
+
configDiagnostics = oldProgram.getConfigDiagnostics();
|
|
122099
|
+
reuseConfigDiagnostics = true;
|
|
122100
|
+
}
|
|
122087
122101
|
files = newSourceFiles;
|
|
122088
122102
|
fileReasons = oldProgram.getFileIncludeReasons();
|
|
122089
122103
|
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
|
@@ -123442,7 +123456,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
123442
123456
|
}
|
|
123443
123457
|
const outputFile = options.outFile;
|
|
123444
123458
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
|
123445
|
-
|
|
123459
|
+
addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
|
123446
123460
|
}
|
|
123447
123461
|
verifyDeprecatedCompilerOptions();
|
|
123448
123462
|
verifyProjectReferences();
|
|
@@ -123544,14 +123558,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
123544
123558
|
}
|
|
123545
123559
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
|
123546
123560
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
123547
|
-
|
|
123561
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
|
123548
123562
|
}
|
|
123549
123563
|
if (outputFile && !options.emitDeclarationOnly) {
|
|
123550
123564
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
|
123551
123565
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
|
123552
123566
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
|
123553
123567
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
123554
|
-
|
|
123568
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
|
123555
123569
|
}
|
|
123556
123570
|
}
|
|
123557
123571
|
if (getResolveJsonModule(options)) {
|
|
@@ -124022,7 +124036,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124022
124036
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
|
124023
124037
|
const initializer = keyProps.initializer;
|
|
124024
124038
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
|
124025
|
-
|
|
124039
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
|
124026
124040
|
needCompilerDiagnostic = false;
|
|
124027
124041
|
}
|
|
124028
124042
|
});
|
|
@@ -124090,9 +124104,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124090
124104
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
|
124091
124105
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
|
124092
124106
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
|
124093
|
-
|
|
124107
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
|
124094
124108
|
} else {
|
|
124095
|
-
|
|
124109
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
124096
124110
|
}
|
|
124097
124111
|
}
|
|
124098
124112
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
|
@@ -124106,14 +124120,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124106
124120
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
|
124107
124121
|
if (compilerOptionsProperty) {
|
|
124108
124122
|
if ("messageText" in message) {
|
|
124109
|
-
|
|
124123
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
|
124110
124124
|
} else {
|
|
124111
|
-
|
|
124125
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
|
124112
124126
|
}
|
|
124113
124127
|
} else if ("messageText" in message) {
|
|
124114
|
-
|
|
124128
|
+
addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
|
|
124115
124129
|
} else {
|
|
124116
|
-
|
|
124130
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
124117
124131
|
}
|
|
124118
124132
|
}
|
|
124119
124133
|
function getCompilerOptionsObjectLiteralSyntax() {
|
|
@@ -124137,9 +124151,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124137
124151
|
let needsCompilerDiagnostic = false;
|
|
124138
124152
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
|
124139
124153
|
if ("messageText" in message) {
|
|
124140
|
-
|
|
124154
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
|
124141
124155
|
} else {
|
|
124142
|
-
|
|
124156
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
|
124143
124157
|
}
|
|
124144
124158
|
needsCompilerDiagnostic = true;
|
|
124145
124159
|
}, key2);
|
|
@@ -124147,7 +124161,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124147
124161
|
}
|
|
124148
124162
|
function blockEmittingOfFile(emitFileName, diag2) {
|
|
124149
124163
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
|
124150
|
-
|
|
124164
|
+
addConfigDiagnostic(diag2);
|
|
124165
|
+
}
|
|
124166
|
+
function addConfigDiagnostic(diag2) {
|
|
124167
|
+
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
|
124151
124168
|
}
|
|
124152
124169
|
function isEmittedFile(file) {
|
|
124153
124170
|
if (options.noEmit) {
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "이 멤버는 기본 클래스 '{0}'에서 선언되지 않았기 때문에 'override' 태그가 있는 JSDoc 주석을 가질 수 없습니다.",
|
|
1666
1666
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "이 멤버는 기본 클래스 '{0}'에서 선언되지 않았기 때문에 'override' 태그가 있는 JSDoc 주석을 가질 수 없습니다. ‘{1}’을(를) 의미했나요?",
|
|
1667
1667
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "이 멤버는 포함하는 클래스 '{0}'이(가) 다른 클래스를 확장하지 않기 때문에 '@override' 태그가 있는 JSDoc 주석을 가질 수 없습니다.",
|
|
1668
|
-
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "
|
|
1668
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "이 멤버는 이름이 동적이기 때문에 '@override' 태그가 포함된 JSDoc 주석을 가질 수 없습니다.",
|
|
1669
1669
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "이 멤버는 기본 클래스 '{0}'에 선언되지 않았으므로 'override' 한정자를 포함할 수 없습니다.",
|
|
1670
1670
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "이 멤버는 기본 클래스 '{0}'에 선언되지 않았으므로 'override' 한정자를 포함할 수 없습니다. '{1}'였습니까?",
|
|
1671
1671
|
"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "이 멤버는 포함하는 클래스 '{0}'이(가) 다른 클래스를 확장하지 않으므로 'override' 한정자를 포함할 수 없습니다.",
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Ta składowa nie może mieć komentarza JSDoc z tagiem „@override”, ponieważ nie jest zadeklarowany w klasie bazowej „{0}”.",
|
|
1666
1666
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Ta składowa nie może mieć komentarza JSDoc z tagiem „override”, ponieważ nie jest zadeklarowany w klasie bazowej „{0}”. Czy chodziło Ci o „{1}”?",
|
|
1667
1667
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Ta składowa nie może mieć komentarza JSDoc z tagiem „@override”, ponieważ jego klasa zawierająca „{0}” nie rozszerza innej klasy.",
|
|
1668
|
-
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "
|
|
1668
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Ten element członkowski nie może mieć komentarza JSDoc z tagiem „@zastąp”, ponieważ jego nazwa jest dynamiczna.",
|
|
1669
1669
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Ten element członkowski nie może mieć modyfikatora „override”, ponieważ nie jest zadeklarowany w klasie podstawowej „{0}”.",
|
|
1670
1670
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Ten element członkowski nie może mieć modyfikatora \"override\", ponieważ nie jest on zadeklarowany w klasie bazowej \"{0}\". Czy chodzi Ci o \"{1}\"?",
|
|
1671
1671
|
"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Ten element członkowski nie może mieć modyfikatora „override”, ponieważ jego klasa zawierająca „{0}” nie rozszerza innej klasy.",
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "Este membro não pode ter um comentário JSDoc com uma marca '@override' porque ele não está declarado na classe base '{0}'.",
|
|
1666
1666
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "Esse membro não pode ter um comentário JSDoc com uma marca 'override' porque ele não está declarado na classe base '{0}'. Você quis dizer '{1}'?",
|
|
1667
1667
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "Este membro não pode ter um comentário JSDoc com uma marca '@override' porque sua classe que contém '{0}' não estende outra classe.",
|
|
1668
|
-
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "
|
|
1668
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "Esse membro não pode ter um comentário JSDoc com uma marcação '@override' porque seu nome é dinâmico.",
|
|
1669
1669
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "Este membro não pode ter um modificador 'override' porque não está declarado na classe base '{0}'.",
|
|
1670
1670
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "Esse membro não pode ter um modificador de 'substituição' porque ele não é declarado na classe base '{0}'. Você quis dizer '{1}'?",
|
|
1671
1671
|
"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "Este membro não pode ter um modificador 'override' porque a classe que o contém, '{0}', não se estende para outra classe.",
|
package/lib/typescript.js
CHANGED
|
@@ -2279,7 +2279,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2279
2279
|
|
|
2280
2280
|
// src/compiler/corePublic.ts
|
|
2281
2281
|
var versionMajorMinor = "5.8";
|
|
2282
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2282
|
+
var version = `${versionMajorMinor}.0-insiders.20241217`;
|
|
2283
2283
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2284
2284
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2285
2285
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -126074,7 +126074,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126074
126074
|
let skipDefaultLib = options.noLib;
|
|
126075
126075
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
126076
126076
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
126077
|
-
|
|
126077
|
+
let programDiagnostics;
|
|
126078
|
+
let reuseConfigDiagnostics = false;
|
|
126079
|
+
let configDiagnostics;
|
|
126078
126080
|
let lazyProgramDiagnosticExplainingFile = [];
|
|
126079
126081
|
const currentDirectory = host.getCurrentDirectory();
|
|
126080
126082
|
const supportedExtensions = getSupportedExtensions(options);
|
|
@@ -126369,6 +126371,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126369
126371
|
resolvedModules,
|
|
126370
126372
|
resolvedTypeReferenceDirectiveNames,
|
|
126371
126373
|
resolvedLibReferences,
|
|
126374
|
+
getConfigDiagnostics: () => configDiagnostics,
|
|
126372
126375
|
getResolvedModule,
|
|
126373
126376
|
getResolvedModuleFromModuleSpecifier,
|
|
126374
126377
|
getResolvedTypeReferenceDirective,
|
|
@@ -126407,12 +126410,19 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126407
126410
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
126408
126411
|
};
|
|
126409
126412
|
onProgramCreateComplete();
|
|
126410
|
-
|
|
126413
|
+
if (!reuseConfigDiagnostics) {
|
|
126414
|
+
verifyCompilerOptions();
|
|
126415
|
+
}
|
|
126411
126416
|
mark("afterProgram");
|
|
126412
126417
|
measure("Program", "beforeProgram", "afterProgram");
|
|
126413
126418
|
(_p = tracing) == null ? void 0 : _p.pop();
|
|
126414
126419
|
return program;
|
|
126415
126420
|
function updateAndGetProgramDiagnostics() {
|
|
126421
|
+
if (programDiagnostics) {
|
|
126422
|
+
return programDiagnostics;
|
|
126423
|
+
}
|
|
126424
|
+
programDiagnostics = createDiagnosticCollection();
|
|
126425
|
+
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => programDiagnostics.add(d));
|
|
126416
126426
|
if (lazyProgramDiagnosticExplainingFile) {
|
|
126417
126427
|
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
|
126418
126428
|
switch (diagnostic.kind) {
|
|
@@ -126927,6 +126937,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126927
126937
|
}
|
|
126928
126938
|
filesByName.set(path, filesByName.get(oldFile.path));
|
|
126929
126939
|
});
|
|
126940
|
+
if (oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations)) {
|
|
126941
|
+
configDiagnostics = oldProgram.getConfigDiagnostics();
|
|
126942
|
+
reuseConfigDiagnostics = true;
|
|
126943
|
+
}
|
|
126930
126944
|
files = newSourceFiles;
|
|
126931
126945
|
fileReasons = oldProgram.getFileIncludeReasons();
|
|
126932
126946
|
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
|
@@ -128285,7 +128299,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128285
128299
|
}
|
|
128286
128300
|
const outputFile = options.outFile;
|
|
128287
128301
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
|
128288
|
-
|
|
128302
|
+
addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
|
128289
128303
|
}
|
|
128290
128304
|
verifyDeprecatedCompilerOptions();
|
|
128291
128305
|
verifyProjectReferences();
|
|
@@ -128387,14 +128401,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128387
128401
|
}
|
|
128388
128402
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
|
128389
128403
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
128390
|
-
|
|
128404
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
|
128391
128405
|
}
|
|
128392
128406
|
if (outputFile && !options.emitDeclarationOnly) {
|
|
128393
128407
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
|
128394
128408
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
|
128395
128409
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
|
128396
128410
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
128397
|
-
|
|
128411
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
|
128398
128412
|
}
|
|
128399
128413
|
}
|
|
128400
128414
|
if (getResolveJsonModule(options)) {
|
|
@@ -128865,7 +128879,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128865
128879
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
|
128866
128880
|
const initializer = keyProps.initializer;
|
|
128867
128881
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
|
128868
|
-
|
|
128882
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
|
128869
128883
|
needCompilerDiagnostic = false;
|
|
128870
128884
|
}
|
|
128871
128885
|
});
|
|
@@ -128933,9 +128947,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128933
128947
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
|
128934
128948
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
|
128935
128949
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
|
128936
|
-
|
|
128950
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
|
128937
128951
|
} else {
|
|
128938
|
-
|
|
128952
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
128939
128953
|
}
|
|
128940
128954
|
}
|
|
128941
128955
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
|
@@ -128949,14 +128963,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128949
128963
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
|
128950
128964
|
if (compilerOptionsProperty) {
|
|
128951
128965
|
if ("messageText" in message) {
|
|
128952
|
-
|
|
128966
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
|
128953
128967
|
} else {
|
|
128954
|
-
|
|
128968
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
|
128955
128969
|
}
|
|
128956
128970
|
} else if ("messageText" in message) {
|
|
128957
|
-
|
|
128971
|
+
addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
|
|
128958
128972
|
} else {
|
|
128959
|
-
|
|
128973
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
128960
128974
|
}
|
|
128961
128975
|
}
|
|
128962
128976
|
function getCompilerOptionsObjectLiteralSyntax() {
|
|
@@ -128980,9 +128994,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128980
128994
|
let needsCompilerDiagnostic = false;
|
|
128981
128995
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
|
128982
128996
|
if ("messageText" in message) {
|
|
128983
|
-
|
|
128997
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
|
128984
128998
|
} else {
|
|
128985
|
-
|
|
128999
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
|
128986
129000
|
}
|
|
128987
129001
|
needsCompilerDiagnostic = true;
|
|
128988
129002
|
}, key2);
|
|
@@ -128990,7 +129004,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128990
129004
|
}
|
|
128991
129005
|
function blockEmittingOfFile(emitFileName, diag2) {
|
|
128992
129006
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
|
128993
|
-
|
|
129007
|
+
addConfigDiagnostic(diag2);
|
|
129008
|
+
}
|
|
129009
|
+
function addConfigDiagnostic(diag2) {
|
|
129010
|
+
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
|
128994
129011
|
}
|
|
128995
129012
|
function isEmittedFile(file) {
|
|
128996
129013
|
if (options.noEmit) {
|
|
@@ -1665,7 +1665,7 @@
|
|
|
1665
1665
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為並未在基底類別 '{0}' 中宣告此成員。",
|
|
1666
1666
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123": "此成員不能包含具有 'override' 標籤的 JSDoc 註解,因為並未在基底類別 '{0}' 中宣告此成員。您指的是 '{1}' 嗎?",
|
|
1667
1667
|
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為包含此成員的類別 '{0}' 並未延伸另一個類別。",
|
|
1668
|
-
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "
|
|
1668
|
+
"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128": "此成員不能包含具有 '@override' 標籤的 JSDoc 註解,因為其名稱為動態。",
|
|
1669
1669
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113": "因為此成員並未在基底類別 '{0}' 中宣告,所以其不得具有 'override' 修飾元。",
|
|
1670
1670
|
"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117": "此成員不能具有 'override' 修飾元,因為並未在基底類別 '{0}' 中宣告此成員。您指的是 '{1}' 嗎?",
|
|
1671
1671
|
"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112": "因為此成員包含的類別 '{0}' 並未延伸其他類別,所以其不得具有 'override' 修飾元。",
|
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.8.0-pr-
|
|
5
|
+
"version": "5.8.0-pr-60800-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|