@typescript-deploys/pr-build 5.8.0-pr-60754-5 → 5.8.0-pr-60755-11
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 +44 -39
- 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 +44 -39
- 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.20241218`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -5502,7 +5502,21 @@ function getNormalizedPathComponents(path, currentDirectory) {
|
|
|
5502
5502
|
return reducePathComponents(getPathComponents(path, currentDirectory));
|
|
5503
5503
|
}
|
|
5504
5504
|
function getNormalizedAbsolutePath(fileName, currentDirectory) {
|
|
5505
|
-
|
|
5505
|
+
fileName = normalizeSlashes(fileName);
|
|
5506
|
+
if (isNotNormalizedOrAbsolute(fileName)) {
|
|
5507
|
+
return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
|
|
5508
|
+
}
|
|
5509
|
+
return fileName;
|
|
5510
|
+
}
|
|
5511
|
+
function isNotNormalizedOrAbsolute(s) {
|
|
5512
|
+
if (getEncodedRootLength(s) === 0) {
|
|
5513
|
+
return true;
|
|
5514
|
+
}
|
|
5515
|
+
const lastChar = s.charCodeAt(s.length - 1);
|
|
5516
|
+
if (lastChar === 47 /* slash */) {
|
|
5517
|
+
return true;
|
|
5518
|
+
}
|
|
5519
|
+
return relativePathSegmentRegExp.test(s);
|
|
5506
5520
|
}
|
|
5507
5521
|
function normalizePath(path) {
|
|
5508
5522
|
path = normalizeSlashes(path);
|
|
@@ -45130,7 +45144,9 @@ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, im
|
|
|
45130
45144
|
if (!baseUrl && !paths && !getResolvePackageJsonImports(compilerOptions) || relativePreference === 0 /* Relative */) {
|
|
45131
45145
|
return pathsOnly ? void 0 : relativePath;
|
|
45132
45146
|
}
|
|
45133
|
-
const
|
|
45147
|
+
const currentDirectory = host.getCurrentDirectory();
|
|
45148
|
+
const basePath = getPathsBasePath(compilerOptions, host) ?? baseUrl ?? currentDirectory;
|
|
45149
|
+
const baseDirectory = getNormalizedAbsolutePath(basePath, currentDirectory);
|
|
45134
45150
|
const relativeToBaseUrl = getRelativePathIfInSameVolume(moduleFileName, baseDirectory, getCanonicalFileName);
|
|
45135
45151
|
if (!relativeToBaseUrl) {
|
|
45136
45152
|
return pathsOnly ? void 0 : relativePath;
|
|
@@ -121205,9 +121221,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121205
121221
|
let skipDefaultLib = options.noLib;
|
|
121206
121222
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
121207
121223
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
121208
|
-
|
|
121209
|
-
let reuseConfigDiagnostics = false;
|
|
121210
|
-
let configDiagnostics;
|
|
121224
|
+
const programDiagnostics = createDiagnosticCollection();
|
|
121211
121225
|
let lazyProgramDiagnosticExplainingFile = [];
|
|
121212
121226
|
const currentDirectory = host.getCurrentDirectory();
|
|
121213
121227
|
const supportedExtensions = getSupportedExtensions(options);
|
|
@@ -121502,7 +121516,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121502
121516
|
resolvedModules,
|
|
121503
121517
|
resolvedTypeReferenceDirectiveNames,
|
|
121504
121518
|
resolvedLibReferences,
|
|
121505
|
-
getConfigDiagnostics: () => configDiagnostics,
|
|
121506
121519
|
getResolvedModule,
|
|
121507
121520
|
getResolvedModuleFromModuleSpecifier,
|
|
121508
121521
|
getResolvedTypeReferenceDirective,
|
|
@@ -121541,19 +121554,12 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121541
121554
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
121542
121555
|
};
|
|
121543
121556
|
onProgramCreateComplete();
|
|
121544
|
-
|
|
121545
|
-
verifyCompilerOptions();
|
|
121546
|
-
}
|
|
121557
|
+
verifyCompilerOptions();
|
|
121547
121558
|
mark("afterProgram");
|
|
121548
121559
|
measure("Program", "beforeProgram", "afterProgram");
|
|
121549
121560
|
(_p = tracing) == null ? void 0 : _p.pop();
|
|
121550
121561
|
return program;
|
|
121551
121562
|
function updateAndGetProgramDiagnostics() {
|
|
121552
|
-
if (programDiagnostics) {
|
|
121553
|
-
return programDiagnostics;
|
|
121554
|
-
}
|
|
121555
|
-
programDiagnostics = createDiagnosticCollection();
|
|
121556
|
-
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => programDiagnostics.add(d));
|
|
121557
121563
|
if (lazyProgramDiagnosticExplainingFile) {
|
|
121558
121564
|
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
|
121559
121565
|
switch (diagnostic.kind) {
|
|
@@ -122068,10 +122074,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
122068
122074
|
}
|
|
122069
122075
|
filesByName.set(path, filesByName.get(oldFile.path));
|
|
122070
122076
|
});
|
|
122071
|
-
if (oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations)) {
|
|
122072
|
-
configDiagnostics = oldProgram.getConfigDiagnostics();
|
|
122073
|
-
reuseConfigDiagnostics = true;
|
|
122074
|
-
}
|
|
122075
122077
|
files = newSourceFiles;
|
|
122076
122078
|
fileReasons = oldProgram.getFileIncludeReasons();
|
|
122077
122079
|
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
|
@@ -123430,7 +123432,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
123430
123432
|
}
|
|
123431
123433
|
const outputFile = options.outFile;
|
|
123432
123434
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
|
123433
|
-
|
|
123435
|
+
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
|
123434
123436
|
}
|
|
123435
123437
|
verifyDeprecatedCompilerOptions();
|
|
123436
123438
|
verifyProjectReferences();
|
|
@@ -123532,14 +123534,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
123532
123534
|
}
|
|
123533
123535
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
|
123534
123536
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
123535
|
-
|
|
123537
|
+
programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
|
123536
123538
|
}
|
|
123537
123539
|
if (outputFile && !options.emitDeclarationOnly) {
|
|
123538
123540
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
|
123539
123541
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
|
123540
123542
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
|
123541
123543
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
123542
|
-
|
|
123544
|
+
programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
|
123543
123545
|
}
|
|
123544
123546
|
}
|
|
123545
123547
|
if (getResolveJsonModule(options)) {
|
|
@@ -124010,7 +124012,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124010
124012
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
|
124011
124013
|
const initializer = keyProps.initializer;
|
|
124012
124014
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
|
124013
|
-
|
|
124015
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
|
124014
124016
|
needCompilerDiagnostic = false;
|
|
124015
124017
|
}
|
|
124016
124018
|
});
|
|
@@ -124078,9 +124080,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124078
124080
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
|
124079
124081
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
|
124080
124082
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
|
124081
|
-
|
|
124083
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
|
124082
124084
|
} else {
|
|
124083
|
-
|
|
124085
|
+
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
|
124084
124086
|
}
|
|
124085
124087
|
}
|
|
124086
124088
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
|
@@ -124094,14 +124096,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124094
124096
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
|
124095
124097
|
if (compilerOptionsProperty) {
|
|
124096
124098
|
if ("messageText" in message) {
|
|
124097
|
-
|
|
124099
|
+
programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
|
124098
124100
|
} else {
|
|
124099
|
-
|
|
124101
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
|
124100
124102
|
}
|
|
124101
124103
|
} else if ("messageText" in message) {
|
|
124102
|
-
|
|
124104
|
+
programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
|
|
124103
124105
|
} else {
|
|
124104
|
-
|
|
124106
|
+
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
|
124105
124107
|
}
|
|
124106
124108
|
}
|
|
124107
124109
|
function getCompilerOptionsObjectLiteralSyntax() {
|
|
@@ -124125,9 +124127,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124125
124127
|
let needsCompilerDiagnostic = false;
|
|
124126
124128
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
|
124127
124129
|
if ("messageText" in message) {
|
|
124128
|
-
|
|
124130
|
+
programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
|
124129
124131
|
} else {
|
|
124130
|
-
|
|
124132
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
|
124131
124133
|
}
|
|
124132
124134
|
needsCompilerDiagnostic = true;
|
|
124133
124135
|
}, key2);
|
|
@@ -124135,10 +124137,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124135
124137
|
}
|
|
124136
124138
|
function blockEmittingOfFile(emitFileName, diag2) {
|
|
124137
124139
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
|
124138
|
-
|
|
124139
|
-
}
|
|
124140
|
-
function addConfigDiagnostic(diag2) {
|
|
124141
|
-
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
|
124140
|
+
programDiagnostics.add(diag2);
|
|
124142
124141
|
}
|
|
124143
124142
|
function isEmittedFile(file) {
|
|
124144
124143
|
if (options.noEmit) {
|
|
@@ -125391,7 +125390,7 @@ function getBuildInfo2(state) {
|
|
|
125391
125390
|
var _a, _b;
|
|
125392
125391
|
const currentDirectory = state.program.getCurrentDirectory();
|
|
125393
125392
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
125394
|
-
const latestChangedDtsFile = state.latestChangedDtsFile ?
|
|
125393
|
+
const latestChangedDtsFile = state.latestChangedDtsFile ? relativePathToBuildInfo(state.latestChangedDtsFile) : void 0;
|
|
125395
125394
|
const fileNames = [];
|
|
125396
125395
|
const fileNameToFileId = /* @__PURE__ */ new Map();
|
|
125397
125396
|
const rootFileNames = new Set(state.program.getRootFileNames().map((f) => toPath(f, currentDirectory, state.program.getCanonicalFileName)));
|
|
@@ -125533,9 +125532,15 @@ function getBuildInfo2(state) {
|
|
|
125533
125532
|
version
|
|
125534
125533
|
};
|
|
125535
125534
|
return buildInfo;
|
|
125536
|
-
function
|
|
125535
|
+
function relativePathToBuildInfo(path) {
|
|
125537
125536
|
return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory));
|
|
125538
125537
|
}
|
|
125538
|
+
function relativePathToBuildInfoOrOriginalValue(path) {
|
|
125539
|
+
if (typeof path === "string") {
|
|
125540
|
+
return relativePathToBuildInfo(path);
|
|
125541
|
+
}
|
|
125542
|
+
return void 0;
|
|
125543
|
+
}
|
|
125539
125544
|
function relativeToBuildInfo(path) {
|
|
125540
125545
|
return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, state.program.getCanonicalFileName));
|
|
125541
125546
|
}
|
|
@@ -125600,10 +125605,10 @@ function getBuildInfo2(state) {
|
|
|
125600
125605
|
if (option.type === "list") {
|
|
125601
125606
|
const values = value;
|
|
125602
125607
|
if (option.element.isFilePath && values.length) {
|
|
125603
|
-
return values
|
|
125608
|
+
return mapDefined(values, relativePathToBuildInfoOrOriginalValue);
|
|
125604
125609
|
}
|
|
125605
125610
|
} else if (option.isFilePath) {
|
|
125606
|
-
return
|
|
125611
|
+
return relativePathToBuildInfoOrOriginalValue(value);
|
|
125607
125612
|
}
|
|
125608
125613
|
}
|
|
125609
125614
|
return value;
|
|
@@ -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.20241218`;
|
|
2283
2283
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2284
2284
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2285
2285
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -8876,7 +8876,21 @@ function getNormalizedPathComponents(path, currentDirectory) {
|
|
|
8876
8876
|
return reducePathComponents(getPathComponents(path, currentDirectory));
|
|
8877
8877
|
}
|
|
8878
8878
|
function getNormalizedAbsolutePath(fileName, currentDirectory) {
|
|
8879
|
-
|
|
8879
|
+
fileName = normalizeSlashes(fileName);
|
|
8880
|
+
if (isNotNormalizedOrAbsolute(fileName)) {
|
|
8881
|
+
return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
|
|
8882
|
+
}
|
|
8883
|
+
return fileName;
|
|
8884
|
+
}
|
|
8885
|
+
function isNotNormalizedOrAbsolute(s) {
|
|
8886
|
+
if (getEncodedRootLength(s) === 0) {
|
|
8887
|
+
return true;
|
|
8888
|
+
}
|
|
8889
|
+
const lastChar = s.charCodeAt(s.length - 1);
|
|
8890
|
+
if (lastChar === 47 /* slash */) {
|
|
8891
|
+
return true;
|
|
8892
|
+
}
|
|
8893
|
+
return relativePathSegmentRegExp.test(s);
|
|
8880
8894
|
}
|
|
8881
8895
|
function normalizePath(path) {
|
|
8882
8896
|
path = normalizeSlashes(path);
|
|
@@ -49719,7 +49733,9 @@ function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, im
|
|
|
49719
49733
|
if (!baseUrl && !paths && !getResolvePackageJsonImports(compilerOptions) || relativePreference === 0 /* Relative */) {
|
|
49720
49734
|
return pathsOnly ? void 0 : relativePath;
|
|
49721
49735
|
}
|
|
49722
|
-
const
|
|
49736
|
+
const currentDirectory = host.getCurrentDirectory();
|
|
49737
|
+
const basePath = getPathsBasePath(compilerOptions, host) ?? baseUrl ?? currentDirectory;
|
|
49738
|
+
const baseDirectory = getNormalizedAbsolutePath(basePath, currentDirectory);
|
|
49723
49739
|
const relativeToBaseUrl = getRelativePathIfInSameVolume(moduleFileName, baseDirectory, getCanonicalFileName);
|
|
49724
49740
|
if (!relativeToBaseUrl) {
|
|
49725
49741
|
return pathsOnly ? void 0 : relativePath;
|
|
@@ -126048,9 +126064,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126048
126064
|
let skipDefaultLib = options.noLib;
|
|
126049
126065
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
126050
126066
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
126051
|
-
|
|
126052
|
-
let reuseConfigDiagnostics = false;
|
|
126053
|
-
let configDiagnostics;
|
|
126067
|
+
const programDiagnostics = createDiagnosticCollection();
|
|
126054
126068
|
let lazyProgramDiagnosticExplainingFile = [];
|
|
126055
126069
|
const currentDirectory = host.getCurrentDirectory();
|
|
126056
126070
|
const supportedExtensions = getSupportedExtensions(options);
|
|
@@ -126345,7 +126359,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126345
126359
|
resolvedModules,
|
|
126346
126360
|
resolvedTypeReferenceDirectiveNames,
|
|
126347
126361
|
resolvedLibReferences,
|
|
126348
|
-
getConfigDiagnostics: () => configDiagnostics,
|
|
126349
126362
|
getResolvedModule,
|
|
126350
126363
|
getResolvedModuleFromModuleSpecifier,
|
|
126351
126364
|
getResolvedTypeReferenceDirective,
|
|
@@ -126384,19 +126397,12 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126384
126397
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
126385
126398
|
};
|
|
126386
126399
|
onProgramCreateComplete();
|
|
126387
|
-
|
|
126388
|
-
verifyCompilerOptions();
|
|
126389
|
-
}
|
|
126400
|
+
verifyCompilerOptions();
|
|
126390
126401
|
mark("afterProgram");
|
|
126391
126402
|
measure("Program", "beforeProgram", "afterProgram");
|
|
126392
126403
|
(_p = tracing) == null ? void 0 : _p.pop();
|
|
126393
126404
|
return program;
|
|
126394
126405
|
function updateAndGetProgramDiagnostics() {
|
|
126395
|
-
if (programDiagnostics) {
|
|
126396
|
-
return programDiagnostics;
|
|
126397
|
-
}
|
|
126398
|
-
programDiagnostics = createDiagnosticCollection();
|
|
126399
|
-
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => programDiagnostics.add(d));
|
|
126400
126406
|
if (lazyProgramDiagnosticExplainingFile) {
|
|
126401
126407
|
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
|
126402
126408
|
switch (diagnostic.kind) {
|
|
@@ -126911,10 +126917,6 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126911
126917
|
}
|
|
126912
126918
|
filesByName.set(path, filesByName.get(oldFile.path));
|
|
126913
126919
|
});
|
|
126914
|
-
if (oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations)) {
|
|
126915
|
-
configDiagnostics = oldProgram.getConfigDiagnostics();
|
|
126916
|
-
reuseConfigDiagnostics = true;
|
|
126917
|
-
}
|
|
126918
126920
|
files = newSourceFiles;
|
|
126919
126921
|
fileReasons = oldProgram.getFileIncludeReasons();
|
|
126920
126922
|
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
|
@@ -128273,7 +128275,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128273
128275
|
}
|
|
128274
128276
|
const outputFile = options.outFile;
|
|
128275
128277
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
|
128276
|
-
|
|
128278
|
+
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
|
128277
128279
|
}
|
|
128278
128280
|
verifyDeprecatedCompilerOptions();
|
|
128279
128281
|
verifyProjectReferences();
|
|
@@ -128375,14 +128377,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128375
128377
|
}
|
|
128376
128378
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
|
128377
128379
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
128378
|
-
|
|
128380
|
+
programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
|
128379
128381
|
}
|
|
128380
128382
|
if (outputFile && !options.emitDeclarationOnly) {
|
|
128381
128383
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
|
128382
128384
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
|
128383
128385
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
|
128384
128386
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
128385
|
-
|
|
128387
|
+
programDiagnostics.add(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
|
128386
128388
|
}
|
|
128387
128389
|
}
|
|
128388
128390
|
if (getResolveJsonModule(options)) {
|
|
@@ -128853,7 +128855,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128853
128855
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
|
128854
128856
|
const initializer = keyProps.initializer;
|
|
128855
128857
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
|
128856
|
-
|
|
128858
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
|
128857
128859
|
needCompilerDiagnostic = false;
|
|
128858
128860
|
}
|
|
128859
128861
|
});
|
|
@@ -128921,9 +128923,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128921
128923
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
|
128922
128924
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
|
128923
128925
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
|
128924
|
-
|
|
128926
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
|
128925
128927
|
} else {
|
|
128926
|
-
|
|
128928
|
+
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
|
128927
128929
|
}
|
|
128928
128930
|
}
|
|
128929
128931
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
|
@@ -128937,14 +128939,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128937
128939
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
|
128938
128940
|
if (compilerOptionsProperty) {
|
|
128939
128941
|
if ("messageText" in message) {
|
|
128940
|
-
|
|
128942
|
+
programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
|
128941
128943
|
} else {
|
|
128942
|
-
|
|
128944
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
|
128943
128945
|
}
|
|
128944
128946
|
} else if ("messageText" in message) {
|
|
128945
|
-
|
|
128947
|
+
programDiagnostics.add(createCompilerDiagnosticFromMessageChain(message));
|
|
128946
128948
|
} else {
|
|
128947
|
-
|
|
128949
|
+
programDiagnostics.add(createCompilerDiagnostic(message, ...args));
|
|
128948
128950
|
}
|
|
128949
128951
|
}
|
|
128950
128952
|
function getCompilerOptionsObjectLiteralSyntax() {
|
|
@@ -128968,9 +128970,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128968
128970
|
let needsCompilerDiagnostic = false;
|
|
128969
128971
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
|
128970
128972
|
if ("messageText" in message) {
|
|
128971
|
-
|
|
128973
|
+
programDiagnostics.add(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
|
128972
128974
|
} else {
|
|
128973
|
-
|
|
128975
|
+
programDiagnostics.add(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
|
128974
128976
|
}
|
|
128975
128977
|
needsCompilerDiagnostic = true;
|
|
128976
128978
|
}, key2);
|
|
@@ -128978,10 +128980,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128978
128980
|
}
|
|
128979
128981
|
function blockEmittingOfFile(emitFileName, diag2) {
|
|
128980
128982
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
|
128981
|
-
|
|
128982
|
-
}
|
|
128983
|
-
function addConfigDiagnostic(diag2) {
|
|
128984
|
-
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
|
128983
|
+
programDiagnostics.add(diag2);
|
|
128985
128984
|
}
|
|
128986
128985
|
function isEmittedFile(file) {
|
|
128987
128986
|
if (options.noEmit) {
|
|
@@ -130263,7 +130262,7 @@ function getBuildInfo2(state) {
|
|
|
130263
130262
|
var _a, _b;
|
|
130264
130263
|
const currentDirectory = state.program.getCurrentDirectory();
|
|
130265
130264
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
|
|
130266
|
-
const latestChangedDtsFile = state.latestChangedDtsFile ?
|
|
130265
|
+
const latestChangedDtsFile = state.latestChangedDtsFile ? relativePathToBuildInfo(state.latestChangedDtsFile) : void 0;
|
|
130267
130266
|
const fileNames = [];
|
|
130268
130267
|
const fileNameToFileId = /* @__PURE__ */ new Map();
|
|
130269
130268
|
const rootFileNames = new Set(state.program.getRootFileNames().map((f) => toPath(f, currentDirectory, state.program.getCanonicalFileName)));
|
|
@@ -130405,9 +130404,15 @@ function getBuildInfo2(state) {
|
|
|
130405
130404
|
version
|
|
130406
130405
|
};
|
|
130407
130406
|
return buildInfo;
|
|
130408
|
-
function
|
|
130407
|
+
function relativePathToBuildInfo(path) {
|
|
130409
130408
|
return relativeToBuildInfo(getNormalizedAbsolutePath(path, currentDirectory));
|
|
130410
130409
|
}
|
|
130410
|
+
function relativePathToBuildInfoOrOriginalValue(path) {
|
|
130411
|
+
if (typeof path === "string") {
|
|
130412
|
+
return relativePathToBuildInfo(path);
|
|
130413
|
+
}
|
|
130414
|
+
return void 0;
|
|
130415
|
+
}
|
|
130411
130416
|
function relativeToBuildInfo(path) {
|
|
130412
130417
|
return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, state.program.getCanonicalFileName));
|
|
130413
130418
|
}
|
|
@@ -130472,10 +130477,10 @@ function getBuildInfo2(state) {
|
|
|
130472
130477
|
if (option.type === "list") {
|
|
130473
130478
|
const values = value;
|
|
130474
130479
|
if (option.element.isFilePath && values.length) {
|
|
130475
|
-
return values
|
|
130480
|
+
return mapDefined(values, relativePathToBuildInfoOrOriginalValue);
|
|
130476
130481
|
}
|
|
130477
130482
|
} else if (option.isFilePath) {
|
|
130478
|
-
return
|
|
130483
|
+
return relativePathToBuildInfoOrOriginalValue(value);
|
|
130479
130484
|
}
|
|
130480
130485
|
}
|
|
130481
130486
|
return value;
|
|
@@ -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-60755-11",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|