@typescript-deploys/pr-build 5.8.0-pr-60755-8 → 5.8.0-pr-60754-5
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 -42
- package/lib/typescript.js +33 -42
- package/package.json +1 -1
package/lib/_tsc.js
CHANGED
|
@@ -5502,33 +5502,7 @@ function getNormalizedPathComponents(path, currentDirectory) {
|
|
|
5502
5502
|
return reducePathComponents(getPathComponents(path, currentDirectory));
|
|
5503
5503
|
}
|
|
5504
5504
|
function getNormalizedAbsolutePath(fileName, currentDirectory) {
|
|
5505
|
-
|
|
5506
|
-
return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
|
|
5507
|
-
}
|
|
5508
|
-
return fileName;
|
|
5509
|
-
}
|
|
5510
|
-
function isNotNormalizedOrAbsolute(s) {
|
|
5511
|
-
if (getEncodedRootLength(s) === 0) return true;
|
|
5512
|
-
if (s.length > 0) {
|
|
5513
|
-
const lastChar = s.charCodeAt(s.length - 1);
|
|
5514
|
-
if (lastChar === 47 /* slash */ || lastChar === 92 /* backslash */) return true;
|
|
5515
|
-
}
|
|
5516
|
-
for (let i = 0, n = s.length - 1; i < n; i++) {
|
|
5517
|
-
const curr = s.charCodeAt(i);
|
|
5518
|
-
const next = s.charCodeAt(i + 1);
|
|
5519
|
-
if (curr === 46 /* dot */) {
|
|
5520
|
-
if (next === 47 /* slash */) {
|
|
5521
|
-
return true;
|
|
5522
|
-
}
|
|
5523
|
-
} else if (curr === 47 /* slash */) {
|
|
5524
|
-
if (next === 47 /* slash */) {
|
|
5525
|
-
return true;
|
|
5526
|
-
}
|
|
5527
|
-
} else if (curr === 92 /* backslash */) {
|
|
5528
|
-
return true;
|
|
5529
|
-
}
|
|
5530
|
-
}
|
|
5531
|
-
return false;
|
|
5505
|
+
return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
|
|
5532
5506
|
}
|
|
5533
5507
|
function normalizePath(path) {
|
|
5534
5508
|
path = normalizeSlashes(path);
|
|
@@ -121231,7 +121205,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121231
121205
|
let skipDefaultLib = options.noLib;
|
|
121232
121206
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
121233
121207
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
121234
|
-
|
|
121208
|
+
let programDiagnostics;
|
|
121209
|
+
let reuseConfigDiagnostics = false;
|
|
121210
|
+
let configDiagnostics;
|
|
121235
121211
|
let lazyProgramDiagnosticExplainingFile = [];
|
|
121236
121212
|
const currentDirectory = host.getCurrentDirectory();
|
|
121237
121213
|
const supportedExtensions = getSupportedExtensions(options);
|
|
@@ -121526,6 +121502,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121526
121502
|
resolvedModules,
|
|
121527
121503
|
resolvedTypeReferenceDirectiveNames,
|
|
121528
121504
|
resolvedLibReferences,
|
|
121505
|
+
getConfigDiagnostics: () => configDiagnostics,
|
|
121529
121506
|
getResolvedModule,
|
|
121530
121507
|
getResolvedModuleFromModuleSpecifier,
|
|
121531
121508
|
getResolvedTypeReferenceDirective,
|
|
@@ -121564,12 +121541,19 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
121564
121541
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
121565
121542
|
};
|
|
121566
121543
|
onProgramCreateComplete();
|
|
121567
|
-
|
|
121544
|
+
if (!reuseConfigDiagnostics) {
|
|
121545
|
+
verifyCompilerOptions();
|
|
121546
|
+
}
|
|
121568
121547
|
mark("afterProgram");
|
|
121569
121548
|
measure("Program", "beforeProgram", "afterProgram");
|
|
121570
121549
|
(_p = tracing) == null ? void 0 : _p.pop();
|
|
121571
121550
|
return program;
|
|
121572
121551
|
function updateAndGetProgramDiagnostics() {
|
|
121552
|
+
if (programDiagnostics) {
|
|
121553
|
+
return programDiagnostics;
|
|
121554
|
+
}
|
|
121555
|
+
programDiagnostics = createDiagnosticCollection();
|
|
121556
|
+
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => programDiagnostics.add(d));
|
|
121573
121557
|
if (lazyProgramDiagnosticExplainingFile) {
|
|
121574
121558
|
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
|
121575
121559
|
switch (diagnostic.kind) {
|
|
@@ -122084,6 +122068,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
122084
122068
|
}
|
|
122085
122069
|
filesByName.set(path, filesByName.get(oldFile.path));
|
|
122086
122070
|
});
|
|
122071
|
+
if (oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations)) {
|
|
122072
|
+
configDiagnostics = oldProgram.getConfigDiagnostics();
|
|
122073
|
+
reuseConfigDiagnostics = true;
|
|
122074
|
+
}
|
|
122087
122075
|
files = newSourceFiles;
|
|
122088
122076
|
fileReasons = oldProgram.getFileIncludeReasons();
|
|
122089
122077
|
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
|
@@ -123442,7 +123430,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
123442
123430
|
}
|
|
123443
123431
|
const outputFile = options.outFile;
|
|
123444
123432
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
|
123445
|
-
|
|
123433
|
+
addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
|
123446
123434
|
}
|
|
123447
123435
|
verifyDeprecatedCompilerOptions();
|
|
123448
123436
|
verifyProjectReferences();
|
|
@@ -123544,14 +123532,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
123544
123532
|
}
|
|
123545
123533
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
|
123546
123534
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
123547
|
-
|
|
123535
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
|
123548
123536
|
}
|
|
123549
123537
|
if (outputFile && !options.emitDeclarationOnly) {
|
|
123550
123538
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
|
123551
123539
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
|
123552
123540
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
|
123553
123541
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
123554
|
-
|
|
123542
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
|
123555
123543
|
}
|
|
123556
123544
|
}
|
|
123557
123545
|
if (getResolveJsonModule(options)) {
|
|
@@ -124022,7 +124010,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124022
124010
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
|
124023
124011
|
const initializer = keyProps.initializer;
|
|
124024
124012
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
|
124025
|
-
|
|
124013
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
|
124026
124014
|
needCompilerDiagnostic = false;
|
|
124027
124015
|
}
|
|
124028
124016
|
});
|
|
@@ -124090,9 +124078,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124090
124078
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
|
124091
124079
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
|
124092
124080
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
|
124093
|
-
|
|
124081
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
|
124094
124082
|
} else {
|
|
124095
|
-
|
|
124083
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
124096
124084
|
}
|
|
124097
124085
|
}
|
|
124098
124086
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
|
@@ -124106,14 +124094,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124106
124094
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
|
124107
124095
|
if (compilerOptionsProperty) {
|
|
124108
124096
|
if ("messageText" in message) {
|
|
124109
|
-
|
|
124097
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
|
124110
124098
|
} else {
|
|
124111
|
-
|
|
124099
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
|
124112
124100
|
}
|
|
124113
124101
|
} else if ("messageText" in message) {
|
|
124114
|
-
|
|
124102
|
+
addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
|
|
124115
124103
|
} else {
|
|
124116
|
-
|
|
124104
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
124117
124105
|
}
|
|
124118
124106
|
}
|
|
124119
124107
|
function getCompilerOptionsObjectLiteralSyntax() {
|
|
@@ -124137,9 +124125,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124137
124125
|
let needsCompilerDiagnostic = false;
|
|
124138
124126
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
|
124139
124127
|
if ("messageText" in message) {
|
|
124140
|
-
|
|
124128
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
|
124141
124129
|
} else {
|
|
124142
|
-
|
|
124130
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
|
124143
124131
|
}
|
|
124144
124132
|
needsCompilerDiagnostic = true;
|
|
124145
124133
|
}, key2);
|
|
@@ -124147,7 +124135,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
124147
124135
|
}
|
|
124148
124136
|
function blockEmittingOfFile(emitFileName, diag2) {
|
|
124149
124137
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
|
124150
|
-
|
|
124138
|
+
addConfigDiagnostic(diag2);
|
|
124139
|
+
}
|
|
124140
|
+
function addConfigDiagnostic(diag2) {
|
|
124141
|
+
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
|
124151
124142
|
}
|
|
124152
124143
|
function isEmittedFile(file) {
|
|
124153
124144
|
if (options.noEmit) {
|
package/lib/typescript.js
CHANGED
|
@@ -8876,33 +8876,7 @@ function getNormalizedPathComponents(path, currentDirectory) {
|
|
|
8876
8876
|
return reducePathComponents(getPathComponents(path, currentDirectory));
|
|
8877
8877
|
}
|
|
8878
8878
|
function getNormalizedAbsolutePath(fileName, currentDirectory) {
|
|
8879
|
-
|
|
8880
|
-
return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
|
|
8881
|
-
}
|
|
8882
|
-
return fileName;
|
|
8883
|
-
}
|
|
8884
|
-
function isNotNormalizedOrAbsolute(s) {
|
|
8885
|
-
if (getEncodedRootLength(s) === 0) return true;
|
|
8886
|
-
if (s.length > 0) {
|
|
8887
|
-
const lastChar = s.charCodeAt(s.length - 1);
|
|
8888
|
-
if (lastChar === 47 /* slash */ || lastChar === 92 /* backslash */) return true;
|
|
8889
|
-
}
|
|
8890
|
-
for (let i = 0, n = s.length - 1; i < n; i++) {
|
|
8891
|
-
const curr = s.charCodeAt(i);
|
|
8892
|
-
const next = s.charCodeAt(i + 1);
|
|
8893
|
-
if (curr === 46 /* dot */) {
|
|
8894
|
-
if (next === 47 /* slash */) {
|
|
8895
|
-
return true;
|
|
8896
|
-
}
|
|
8897
|
-
} else if (curr === 47 /* slash */) {
|
|
8898
|
-
if (next === 47 /* slash */) {
|
|
8899
|
-
return true;
|
|
8900
|
-
}
|
|
8901
|
-
} else if (curr === 92 /* backslash */) {
|
|
8902
|
-
return true;
|
|
8903
|
-
}
|
|
8904
|
-
}
|
|
8905
|
-
return false;
|
|
8879
|
+
return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));
|
|
8906
8880
|
}
|
|
8907
8881
|
function normalizePath(path) {
|
|
8908
8882
|
path = normalizeSlashes(path);
|
|
@@ -126074,7 +126048,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126074
126048
|
let skipDefaultLib = options.noLib;
|
|
126075
126049
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
126076
126050
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
126077
|
-
|
|
126051
|
+
let programDiagnostics;
|
|
126052
|
+
let reuseConfigDiagnostics = false;
|
|
126053
|
+
let configDiagnostics;
|
|
126078
126054
|
let lazyProgramDiagnosticExplainingFile = [];
|
|
126079
126055
|
const currentDirectory = host.getCurrentDirectory();
|
|
126080
126056
|
const supportedExtensions = getSupportedExtensions(options);
|
|
@@ -126369,6 +126345,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126369
126345
|
resolvedModules,
|
|
126370
126346
|
resolvedTypeReferenceDirectiveNames,
|
|
126371
126347
|
resolvedLibReferences,
|
|
126348
|
+
getConfigDiagnostics: () => configDiagnostics,
|
|
126372
126349
|
getResolvedModule,
|
|
126373
126350
|
getResolvedModuleFromModuleSpecifier,
|
|
126374
126351
|
getResolvedTypeReferenceDirective,
|
|
@@ -126407,12 +126384,19 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126407
126384
|
getGlobalTypingsCacheLocation: maybeBind(host, host.getGlobalTypingsCacheLocation)
|
|
126408
126385
|
};
|
|
126409
126386
|
onProgramCreateComplete();
|
|
126410
|
-
|
|
126387
|
+
if (!reuseConfigDiagnostics) {
|
|
126388
|
+
verifyCompilerOptions();
|
|
126389
|
+
}
|
|
126411
126390
|
mark("afterProgram");
|
|
126412
126391
|
measure("Program", "beforeProgram", "afterProgram");
|
|
126413
126392
|
(_p = tracing) == null ? void 0 : _p.pop();
|
|
126414
126393
|
return program;
|
|
126415
126394
|
function updateAndGetProgramDiagnostics() {
|
|
126395
|
+
if (programDiagnostics) {
|
|
126396
|
+
return programDiagnostics;
|
|
126397
|
+
}
|
|
126398
|
+
programDiagnostics = createDiagnosticCollection();
|
|
126399
|
+
configDiagnostics == null ? void 0 : configDiagnostics.getDiagnostics().forEach((d) => programDiagnostics.add(d));
|
|
126416
126400
|
if (lazyProgramDiagnosticExplainingFile) {
|
|
126417
126401
|
fileProcessingDiagnostics == null ? void 0 : fileProcessingDiagnostics.forEach((diagnostic) => {
|
|
126418
126402
|
switch (diagnostic.kind) {
|
|
@@ -126927,6 +126911,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
126927
126911
|
}
|
|
126928
126912
|
filesByName.set(path, filesByName.get(oldFile.path));
|
|
126929
126913
|
});
|
|
126914
|
+
if (oldOptions.configFile && oldOptions.configFile === options.configFile || !oldOptions.configFile && !options.configFile && !optionsHaveChanges(oldOptions, options, optionDeclarations)) {
|
|
126915
|
+
configDiagnostics = oldProgram.getConfigDiagnostics();
|
|
126916
|
+
reuseConfigDiagnostics = true;
|
|
126917
|
+
}
|
|
126930
126918
|
files = newSourceFiles;
|
|
126931
126919
|
fileReasons = oldProgram.getFileIncludeReasons();
|
|
126932
126920
|
fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();
|
|
@@ -128285,7 +128273,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128285
128273
|
}
|
|
128286
128274
|
const outputFile = options.outFile;
|
|
128287
128275
|
if (!options.tsBuildInfoFile && options.incremental && !outputFile && !options.configFilePath) {
|
|
128288
|
-
|
|
128276
|
+
addConfigDiagnostic(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));
|
|
128289
128277
|
}
|
|
128290
128278
|
verifyDeprecatedCompilerOptions();
|
|
128291
128279
|
verifyProjectReferences();
|
|
@@ -128387,14 +128375,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128387
128375
|
}
|
|
128388
128376
|
} else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === 0 /* None */) {
|
|
128389
128377
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
128390
|
-
|
|
128378
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));
|
|
128391
128379
|
}
|
|
128392
128380
|
if (outputFile && !options.emitDeclarationOnly) {
|
|
128393
128381
|
if (options.module && !(options.module === 2 /* AMD */ || options.module === 4 /* System */)) {
|
|
128394
128382
|
createDiagnosticForOptionName(Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, "outFile", "module");
|
|
128395
128383
|
} else if (options.module === void 0 && firstNonAmbientExternalModuleSourceFile) {
|
|
128396
128384
|
const span = getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, typeof firstNonAmbientExternalModuleSourceFile.externalModuleIndicator === "boolean" ? firstNonAmbientExternalModuleSourceFile : firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);
|
|
128397
|
-
|
|
128385
|
+
addConfigDiagnostic(createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, "outFile"));
|
|
128398
128386
|
}
|
|
128399
128387
|
}
|
|
128400
128388
|
if (getResolveJsonModule(options)) {
|
|
@@ -128865,7 +128853,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128865
128853
|
forEachPropertyAssignment(pathProp.initializer, key, (keyProps) => {
|
|
128866
128854
|
const initializer = keyProps.initializer;
|
|
128867
128855
|
if (isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
|
|
128868
|
-
|
|
128856
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, ...args));
|
|
128869
128857
|
needCompilerDiagnostic = false;
|
|
128870
128858
|
}
|
|
128871
128859
|
});
|
|
@@ -128933,9 +128921,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128933
128921
|
function createDiagnosticForReference(sourceFile, index, message, ...args) {
|
|
128934
128922
|
const referencesSyntax = forEachTsConfigPropArray(sourceFile || options.configFile, "references", (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0);
|
|
128935
128923
|
if (referencesSyntax && referencesSyntax.elements.length > index) {
|
|
128936
|
-
|
|
128924
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, ...args));
|
|
128937
128925
|
} else {
|
|
128938
|
-
|
|
128926
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
128939
128927
|
}
|
|
128940
128928
|
}
|
|
128941
128929
|
function createDiagnosticForOption(onKey, option1, option2, message, ...args) {
|
|
@@ -128949,14 +128937,14 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128949
128937
|
const compilerOptionsProperty = getCompilerOptionsPropertySyntax();
|
|
128950
128938
|
if (compilerOptionsProperty) {
|
|
128951
128939
|
if ("messageText" in message) {
|
|
128952
|
-
|
|
128940
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, compilerOptionsProperty.name, message));
|
|
128953
128941
|
} else {
|
|
128954
|
-
|
|
128942
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, compilerOptionsProperty.name, message, ...args));
|
|
128955
128943
|
}
|
|
128956
128944
|
} else if ("messageText" in message) {
|
|
128957
|
-
|
|
128945
|
+
addConfigDiagnostic(createCompilerDiagnosticFromMessageChain(message));
|
|
128958
128946
|
} else {
|
|
128959
|
-
|
|
128947
|
+
addConfigDiagnostic(createCompilerDiagnostic(message, ...args));
|
|
128960
128948
|
}
|
|
128961
128949
|
}
|
|
128962
128950
|
function getCompilerOptionsObjectLiteralSyntax() {
|
|
@@ -128980,9 +128968,9 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128980
128968
|
let needsCompilerDiagnostic = false;
|
|
128981
128969
|
forEachPropertyAssignment(objectLiteral, key1, (prop) => {
|
|
128982
128970
|
if ("messageText" in message) {
|
|
128983
|
-
|
|
128971
|
+
addConfigDiagnostic(createDiagnosticForNodeFromMessageChain(options.configFile, onKey ? prop.name : prop.initializer, message));
|
|
128984
128972
|
} else {
|
|
128985
|
-
|
|
128973
|
+
addConfigDiagnostic(createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, ...args));
|
|
128986
128974
|
}
|
|
128987
128975
|
needsCompilerDiagnostic = true;
|
|
128988
128976
|
}, key2);
|
|
@@ -128990,7 +128978,10 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
|
|
|
128990
128978
|
}
|
|
128991
128979
|
function blockEmittingOfFile(emitFileName, diag2) {
|
|
128992
128980
|
hasEmitBlockingDiagnostics.set(toPath3(emitFileName), true);
|
|
128993
|
-
|
|
128981
|
+
addConfigDiagnostic(diag2);
|
|
128982
|
+
}
|
|
128983
|
+
function addConfigDiagnostic(diag2) {
|
|
128984
|
+
(configDiagnostics ?? (configDiagnostics = createDiagnosticCollection())).add(diag2);
|
|
128994
128985
|
}
|
|
128995
128986
|
function isEmittedFile(file) {
|
|
128996
128987
|
if (options.noEmit) {
|
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-60754-5",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|