typescript 5.0.0-dev.20230126 → 5.0.0-dev.20230127
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 +113 -33
- package/lib/tsserver.js +108 -40
- package/lib/tsserverlibrary.js +107 -40
- package/lib/typescript.js +106 -40
- package/lib/typingsInstaller.js +3 -5649
- package/package.json +1 -1
package/lib/typescript.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20230127`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -8564,6 +8564,7 @@ ${lanes.join("\n")}
|
|
|
8564
8564
|
Use_the_package_json_imports_field_when_resolving_imports: diag(6409, 3 /* Message */, "Use_the_package_json_imports_field_when_resolving_imports_6409", "Use the package.json 'imports' field when resolving imports."),
|
|
8565
8565
|
Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports: diag(6410, 3 /* Message */, "Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410", "Conditions to set in addition to the resolver-specific defaults when resolving imports."),
|
|
8566
8566
|
true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false: diag(6411, 3 /* Message */, "true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411", "`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),
|
|
8567
|
+
Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more: diag(6412, 3 /* Message */, "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412", "Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),
|
|
8567
8568
|
The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, 3 /* Message */, "The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500", "The expected type comes from property '{0}' which is declared here on type '{1}'"),
|
|
8568
8569
|
The_expected_type_comes_from_this_index_signature: diag(6501, 3 /* Message */, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."),
|
|
8569
8570
|
The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, 3 /* Message */, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."),
|
|
@@ -37740,7 +37741,7 @@ ${lanes.join("\n")}
|
|
|
37740
37741
|
{
|
|
37741
37742
|
name: "allowArbitraryExtensions",
|
|
37742
37743
|
type: "boolean",
|
|
37743
|
-
|
|
37744
|
+
affectsProgramStructure: true,
|
|
37744
37745
|
category: Diagnostics.Modules,
|
|
37745
37746
|
description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,
|
|
37746
37747
|
defaultValueDescription: false
|
|
@@ -44307,8 +44308,8 @@ ${lanes.join("\n")}
|
|
|
44307
44308
|
if (typeof cachedPackageJson === "object" || cachedPackageJson === void 0 && host.fileExists(packageJsonPath)) {
|
|
44308
44309
|
const packageJsonContent = (cachedPackageJson == null ? void 0 : cachedPackageJson.contents.packageJsonContent) || JSON.parse(host.readFile(packageJsonPath));
|
|
44309
44310
|
const importMode = overrideMode || importingSourceFile.impliedNodeFormat;
|
|
44310
|
-
if (
|
|
44311
|
-
const conditions =
|
|
44311
|
+
if (getResolvePackageJsonExports(options)) {
|
|
44312
|
+
const conditions = getConditions(options, importMode === 99 /* ESNext */);
|
|
44312
44313
|
const fromExports = packageJsonContent.exports && typeof packageJsonContent.name === "string" ? tryGetModuleNameFromExports(options, path, packageRootPath, getPackageNameFromTypesPackageName(packageJsonContent.name), packageJsonContent.exports, conditions) : void 0;
|
|
44313
44314
|
if (fromExports) {
|
|
44314
44315
|
const withJsExtension = !hasTSFileExtension(fromExports.moduleFileToTry) ? fromExports : { moduleFileToTry: removeFileExtension(fromExports.moduleFileToTry) + tryGetJSExtensionForFile(fromExports.moduleFileToTry, options) };
|
|
@@ -113847,10 +113848,10 @@ ${lanes.join("\n")}
|
|
|
113847
113848
|
getDeclarationStatementsForSourceFile: notImplemented,
|
|
113848
113849
|
isImportRequiredByAugmentation: notImplemented
|
|
113849
113850
|
};
|
|
113850
|
-
createPrinterWithDefaults = memoize(() => createPrinter({}));
|
|
113851
|
-
createPrinterWithRemoveComments = memoize(() => createPrinter({ removeComments: true }));
|
|
113852
|
-
createPrinterWithRemoveCommentsNeverAsciiEscape = memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true }));
|
|
113853
|
-
createPrinterWithRemoveCommentsOmitTrailingSemicolon = memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true }));
|
|
113851
|
+
createPrinterWithDefaults = /* @__PURE__ */ memoize(() => createPrinter({}));
|
|
113852
|
+
createPrinterWithRemoveComments = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true }));
|
|
113853
|
+
createPrinterWithRemoveCommentsNeverAsciiEscape = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, neverAsciiEscape: true }));
|
|
113854
|
+
createPrinterWithRemoveCommentsOmitTrailingSemicolon = /* @__PURE__ */ memoize(() => createPrinter({ removeComments: true, omitTrailingSemicolon: true }));
|
|
113854
113855
|
TempFlags = /* @__PURE__ */ ((TempFlags2) => {
|
|
113855
113856
|
TempFlags2[TempFlags2["Auto"] = 0] = "Auto";
|
|
113856
113857
|
TempFlags2[TempFlags2["CountMask"] = 268435455] = "CountMask";
|
|
@@ -119229,14 +119230,17 @@ ${lanes.join("\n")}
|
|
|
119229
119230
|
const latestChangedDtsFile = state.latestChangedDtsFile ? relativeToBuildInfoEnsuringAbsolutePath(state.latestChangedDtsFile) : void 0;
|
|
119230
119231
|
const fileNames = [];
|
|
119231
119232
|
const fileNameToFileId = /* @__PURE__ */ new Map();
|
|
119233
|
+
const root = [];
|
|
119232
119234
|
if (outFile(state.compilerOptions)) {
|
|
119233
119235
|
const fileInfos2 = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
|
|
119234
|
-
toFileId(key);
|
|
119236
|
+
const fileId = toFileId(key);
|
|
119237
|
+
tryAddRoot(key, fileId);
|
|
119235
119238
|
return value.impliedFormat ? { version: value.version, impliedFormat: value.impliedFormat, signature: void 0, affectsGlobalScope: void 0 } : value.version;
|
|
119236
119239
|
});
|
|
119237
119240
|
const program2 = {
|
|
119238
119241
|
fileNames,
|
|
119239
119242
|
fileInfos: fileInfos2,
|
|
119243
|
+
root,
|
|
119240
119244
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions),
|
|
119241
119245
|
outSignature: state.outSignature,
|
|
119242
119246
|
latestChangedDtsFile,
|
|
@@ -119264,6 +119268,7 @@ ${lanes.join("\n")}
|
|
|
119264
119268
|
const fileInfos = arrayFrom(state.fileInfos.entries(), ([key, value]) => {
|
|
119265
119269
|
var _a3, _b2;
|
|
119266
119270
|
const fileId = toFileId(key);
|
|
119271
|
+
tryAddRoot(key, fileId);
|
|
119267
119272
|
Debug.assert(fileNames[fileId - 1] === relativeToBuildInfo(key));
|
|
119268
119273
|
const oldSignature = (_a3 = state.oldSignatures) == null ? void 0 : _a3.get(key);
|
|
119269
119274
|
const actualSignature = oldSignature !== void 0 ? oldSignature || void 0 : value.signature;
|
|
@@ -119363,6 +119368,7 @@ ${lanes.join("\n")}
|
|
|
119363
119368
|
const program = {
|
|
119364
119369
|
fileNames,
|
|
119365
119370
|
fileInfos,
|
|
119371
|
+
root,
|
|
119366
119372
|
options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions),
|
|
119367
119373
|
fileIdsList,
|
|
119368
119374
|
referencedMap,
|
|
@@ -119398,6 +119404,24 @@ ${lanes.join("\n")}
|
|
|
119398
119404
|
}
|
|
119399
119405
|
return fileIdListId;
|
|
119400
119406
|
}
|
|
119407
|
+
function tryAddRoot(path, fileId) {
|
|
119408
|
+
const file = state.program.getSourceFile(path);
|
|
119409
|
+
if (!state.program.getFileIncludeReasons().get(file.path).some((r) => r.kind === 0 /* RootFile */))
|
|
119410
|
+
return;
|
|
119411
|
+
if (!root.length)
|
|
119412
|
+
return root.push(fileId);
|
|
119413
|
+
const last2 = root[root.length - 1];
|
|
119414
|
+
const isLastStartEnd = isArray(last2);
|
|
119415
|
+
if (isLastStartEnd && last2[1] === fileId - 1)
|
|
119416
|
+
return last2[1] = fileId;
|
|
119417
|
+
if (isLastStartEnd || root.length === 1 || last2 !== fileId - 1)
|
|
119418
|
+
return root.push(fileId);
|
|
119419
|
+
const lastButOne = root[root.length - 2];
|
|
119420
|
+
if (!isNumber(lastButOne) || lastButOne !== last2 - 1)
|
|
119421
|
+
return root.push(fileId);
|
|
119422
|
+
root[root.length - 2] = [lastButOne, fileId];
|
|
119423
|
+
return root.length = root.length - 1;
|
|
119424
|
+
}
|
|
119401
119425
|
function convertToProgramBuildInfoCompilerOptions(options) {
|
|
119402
119426
|
let result;
|
|
119403
119427
|
const { optionsNameMap } = getOptionsNameMap();
|
|
@@ -119905,12 +119929,28 @@ ${lanes.join("\n")}
|
|
|
119905
119929
|
const buildInfoDirectory = getDirectoryPath(getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
|
|
119906
119930
|
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames());
|
|
119907
119931
|
const fileInfos = /* @__PURE__ */ new Map();
|
|
119932
|
+
let rootIndex = 0;
|
|
119933
|
+
const roots = [];
|
|
119908
119934
|
program.fileInfos.forEach((fileInfo, index) => {
|
|
119909
119935
|
const path = toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
|
|
119910
119936
|
const version2 = isString(fileInfo) ? fileInfo : fileInfo.version;
|
|
119911
119937
|
fileInfos.set(path, version2);
|
|
119938
|
+
if (rootIndex < program.root.length) {
|
|
119939
|
+
const current = program.root[rootIndex];
|
|
119940
|
+
const fileId = index + 1;
|
|
119941
|
+
if (isArray(current)) {
|
|
119942
|
+
if (current[0] <= fileId && fileId <= current[1]) {
|
|
119943
|
+
roots.push(path);
|
|
119944
|
+
if (current[1] === fileId)
|
|
119945
|
+
rootIndex++;
|
|
119946
|
+
}
|
|
119947
|
+
} else if (current === fileId) {
|
|
119948
|
+
roots.push(path);
|
|
119949
|
+
rootIndex++;
|
|
119950
|
+
}
|
|
119951
|
+
}
|
|
119912
119952
|
});
|
|
119913
|
-
return fileInfos;
|
|
119953
|
+
return { fileInfos, roots };
|
|
119914
119954
|
}
|
|
119915
119955
|
function createRedirectedBuilderProgram(getState, configFileParsingDiagnostics) {
|
|
119916
119956
|
return {
|
|
@@ -122243,13 +122283,14 @@ ${lanes.join("\n")}
|
|
|
122243
122283
|
UpToDateStatusType2[UpToDateStatusType2["OutOfDateWithUpstream"] = 7] = "OutOfDateWithUpstream";
|
|
122244
122284
|
UpToDateStatusType2[UpToDateStatusType2["OutOfDateBuildInfo"] = 8] = "OutOfDateBuildInfo";
|
|
122245
122285
|
UpToDateStatusType2[UpToDateStatusType2["OutOfDateOptions"] = 9] = "OutOfDateOptions";
|
|
122246
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122247
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122248
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122249
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122250
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122251
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122252
|
-
UpToDateStatusType2[UpToDateStatusType2["
|
|
122286
|
+
UpToDateStatusType2[UpToDateStatusType2["OutOfDateRoots"] = 10] = "OutOfDateRoots";
|
|
122287
|
+
UpToDateStatusType2[UpToDateStatusType2["UpstreamOutOfDate"] = 11] = "UpstreamOutOfDate";
|
|
122288
|
+
UpToDateStatusType2[UpToDateStatusType2["UpstreamBlocked"] = 12] = "UpstreamBlocked";
|
|
122289
|
+
UpToDateStatusType2[UpToDateStatusType2["ComputingUpstream"] = 13] = "ComputingUpstream";
|
|
122290
|
+
UpToDateStatusType2[UpToDateStatusType2["TsVersionOutputOfDate"] = 14] = "TsVersionOutputOfDate";
|
|
122291
|
+
UpToDateStatusType2[UpToDateStatusType2["UpToDateWithInputFileText"] = 15] = "UpToDateWithInputFileText";
|
|
122292
|
+
UpToDateStatusType2[UpToDateStatusType2["ContainerOnly"] = 16] = "ContainerOnly";
|
|
122293
|
+
UpToDateStatusType2[UpToDateStatusType2["ForceBuild"] = 17] = "ForceBuild";
|
|
122253
122294
|
return UpToDateStatusType2;
|
|
122254
122295
|
})(UpToDateStatusType || {});
|
|
122255
122296
|
}
|
|
@@ -123131,7 +123172,7 @@ ${lanes.join("\n")}
|
|
|
123131
123172
|
}
|
|
123132
123173
|
continue;
|
|
123133
123174
|
}
|
|
123134
|
-
if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type ===
|
|
123175
|
+
if (status.type === 2 /* UpToDateWithUpstreamTypes */ || status.type === 15 /* UpToDateWithInputFileText */) {
|
|
123135
123176
|
reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
|
|
123136
123177
|
return {
|
|
123137
123178
|
kind: 2 /* UpdateOutputFileStamps */,
|
|
@@ -123143,7 +123184,7 @@ ${lanes.join("\n")}
|
|
|
123143
123184
|
};
|
|
123144
123185
|
}
|
|
123145
123186
|
}
|
|
123146
|
-
if (status.type ===
|
|
123187
|
+
if (status.type === 12 /* UpstreamBlocked */) {
|
|
123147
123188
|
verboseReportProjectStatus(state, project, status);
|
|
123148
123189
|
reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
|
|
123149
123190
|
projectPendingBuild.delete(projectPath);
|
|
@@ -123157,7 +123198,7 @@ ${lanes.join("\n")}
|
|
|
123157
123198
|
}
|
|
123158
123199
|
continue;
|
|
123159
123200
|
}
|
|
123160
|
-
if (status.type ===
|
|
123201
|
+
if (status.type === 16 /* ContainerOnly */) {
|
|
123161
123202
|
verboseReportProjectStatus(state, project, status);
|
|
123162
123203
|
reportAndStoreErrors(state, projectPath, getConfigFileParsingDiagnostics(config));
|
|
123163
123204
|
projectPendingBuild.delete(projectPath);
|
|
@@ -123344,31 +123385,31 @@ ${lanes.join("\n")}
|
|
|
123344
123385
|
var _a2, _b;
|
|
123345
123386
|
if (!project.fileNames.length && !canJsonReportNoInputFiles(project.raw)) {
|
|
123346
123387
|
return {
|
|
123347
|
-
type:
|
|
123388
|
+
type: 16 /* ContainerOnly */
|
|
123348
123389
|
};
|
|
123349
123390
|
}
|
|
123350
123391
|
let referenceStatuses;
|
|
123351
123392
|
const force = !!state.options.force;
|
|
123352
123393
|
if (project.projectReferences) {
|
|
123353
|
-
state.projectStatus.set(resolvedPath, { type:
|
|
123394
|
+
state.projectStatus.set(resolvedPath, { type: 13 /* ComputingUpstream */ });
|
|
123354
123395
|
for (const ref of project.projectReferences) {
|
|
123355
123396
|
const resolvedRef = resolveProjectReferencePath(ref);
|
|
123356
123397
|
const resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef);
|
|
123357
123398
|
const resolvedConfig = parseConfigFile(state, resolvedRef, resolvedRefPath);
|
|
123358
123399
|
const refStatus = getUpToDateStatus(state, resolvedConfig, resolvedRefPath);
|
|
123359
|
-
if (refStatus.type ===
|
|
123400
|
+
if (refStatus.type === 13 /* ComputingUpstream */ || refStatus.type === 16 /* ContainerOnly */) {
|
|
123360
123401
|
continue;
|
|
123361
123402
|
}
|
|
123362
|
-
if (refStatus.type === 0 /* Unbuildable */ || refStatus.type ===
|
|
123403
|
+
if (refStatus.type === 0 /* Unbuildable */ || refStatus.type === 12 /* UpstreamBlocked */) {
|
|
123363
123404
|
return {
|
|
123364
|
-
type:
|
|
123405
|
+
type: 12 /* UpstreamBlocked */,
|
|
123365
123406
|
upstreamProjectName: ref.path,
|
|
123366
|
-
upstreamProjectBlocked: refStatus.type ===
|
|
123407
|
+
upstreamProjectBlocked: refStatus.type === 12 /* UpstreamBlocked */
|
|
123367
123408
|
};
|
|
123368
123409
|
}
|
|
123369
123410
|
if (refStatus.type !== 1 /* UpToDate */) {
|
|
123370
123411
|
return {
|
|
123371
|
-
type:
|
|
123412
|
+
type: 11 /* UpstreamOutOfDate */,
|
|
123372
123413
|
upstreamProjectName: ref.path
|
|
123373
123414
|
};
|
|
123374
123415
|
}
|
|
@@ -123377,7 +123418,7 @@ ${lanes.join("\n")}
|
|
|
123377
123418
|
}
|
|
123378
123419
|
}
|
|
123379
123420
|
if (force)
|
|
123380
|
-
return { type:
|
|
123421
|
+
return { type: 17 /* ForceBuild */ };
|
|
123381
123422
|
const { host } = state;
|
|
123382
123423
|
const buildInfoPath = getTsBuildInfoEmitOutputFilePath(project.options);
|
|
123383
123424
|
let oldestOutputFileName;
|
|
@@ -123410,7 +123451,7 @@ ${lanes.join("\n")}
|
|
|
123410
123451
|
}
|
|
123411
123452
|
if ((buildInfo.bundle || buildInfo.program) && buildInfo.version !== version) {
|
|
123412
123453
|
return {
|
|
123413
|
-
type:
|
|
123454
|
+
type: 14 /* TsVersionOutputOfDate */,
|
|
123414
123455
|
version: buildInfo.version
|
|
123415
123456
|
};
|
|
123416
123457
|
}
|
|
@@ -123435,6 +123476,7 @@ ${lanes.join("\n")}
|
|
|
123435
123476
|
let newestInputFileName = void 0;
|
|
123436
123477
|
let newestInputFileTime = minimumDate;
|
|
123437
123478
|
let pseudoInputUpToDate = false;
|
|
123479
|
+
const seenRoots = /* @__PURE__ */ new Set();
|
|
123438
123480
|
for (const inputFile of project.fileNames) {
|
|
123439
123481
|
const inputTime = getModifiedTime2(state, inputFile);
|
|
123440
123482
|
if (inputTime === missingFileModifiedTime) {
|
|
@@ -123449,7 +123491,7 @@ ${lanes.join("\n")}
|
|
|
123449
123491
|
if (buildInfoProgram) {
|
|
123450
123492
|
if (!buildInfoVersionMap)
|
|
123451
123493
|
buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
|
|
123452
|
-
version2 = buildInfoVersionMap.get(toPath2(state, inputFile));
|
|
123494
|
+
version2 = buildInfoVersionMap.fileInfos.get(toPath2(state, inputFile));
|
|
123453
123495
|
const text = version2 ? state.readFileWithCache(inputFile) : void 0;
|
|
123454
123496
|
currentVersion = text !== void 0 ? getSourceFileVersionAsHashFromText(host, text) : void 0;
|
|
123455
123497
|
if (version2 && version2 === currentVersion)
|
|
@@ -123467,6 +123509,21 @@ ${lanes.join("\n")}
|
|
|
123467
123509
|
newestInputFileName = inputFile;
|
|
123468
123510
|
newestInputFileTime = inputTime;
|
|
123469
123511
|
}
|
|
123512
|
+
if (buildInfoProgram)
|
|
123513
|
+
seenRoots.add(toPath2(state, inputFile));
|
|
123514
|
+
}
|
|
123515
|
+
if (buildInfoProgram) {
|
|
123516
|
+
if (!buildInfoVersionMap)
|
|
123517
|
+
buildInfoVersionMap = getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
|
|
123518
|
+
for (const existingRoot of buildInfoVersionMap.roots) {
|
|
123519
|
+
if (!seenRoots.has(existingRoot)) {
|
|
123520
|
+
return {
|
|
123521
|
+
type: 10 /* OutOfDateRoots */,
|
|
123522
|
+
buildInfoFile: buildInfoPath,
|
|
123523
|
+
inputFile: existingRoot
|
|
123524
|
+
};
|
|
123525
|
+
}
|
|
123526
|
+
}
|
|
123470
123527
|
}
|
|
123471
123528
|
if (!buildInfoPath) {
|
|
123472
123529
|
const outputs = getAllProjectOutputs(project, !host.useCaseSensitiveFileNames());
|
|
@@ -123548,7 +123605,7 @@ ${lanes.join("\n")}
|
|
|
123548
123605
|
};
|
|
123549
123606
|
}
|
|
123550
123607
|
return {
|
|
123551
|
-
type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ?
|
|
123608
|
+
type: pseudoUpToDate ? 2 /* UpToDateWithUpstreamTypes */ : pseudoInputUpToDate ? 15 /* UpToDateWithInputFileText */ : 1 /* UpToDate */,
|
|
123552
123609
|
newestInputFileTime,
|
|
123553
123610
|
newestInputFileName,
|
|
123554
123611
|
oldestOutputFileName
|
|
@@ -123667,7 +123724,7 @@ ${lanes.join("\n")}
|
|
|
123667
123724
|
}
|
|
123668
123725
|
break;
|
|
123669
123726
|
}
|
|
123670
|
-
case
|
|
123727
|
+
case 15 /* UpToDateWithInputFileText */:
|
|
123671
123728
|
case 2 /* UpToDateWithUpstreamTypes */:
|
|
123672
123729
|
case 3 /* OutOfDateWithPrepend */:
|
|
123673
123730
|
if (!(buildResult & 2 /* DeclarationOutputUnchanged */)) {
|
|
@@ -123678,7 +123735,7 @@ ${lanes.join("\n")}
|
|
|
123678
123735
|
});
|
|
123679
123736
|
}
|
|
123680
123737
|
break;
|
|
123681
|
-
case
|
|
123738
|
+
case 12 /* UpstreamBlocked */:
|
|
123682
123739
|
if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) {
|
|
123683
123740
|
clearProjectStatus(state, nextProjectPath);
|
|
123684
123741
|
}
|
|
@@ -124129,6 +124186,14 @@ ${lanes.join("\n")}
|
|
|
124129
124186
|
relName(state, configFileName),
|
|
124130
124187
|
relName(state, status.buildInfoFile)
|
|
124131
124188
|
);
|
|
124189
|
+
case 10 /* OutOfDateRoots */:
|
|
124190
|
+
return reportStatus(
|
|
124191
|
+
state,
|
|
124192
|
+
Diagnostics.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,
|
|
124193
|
+
relName(state, configFileName),
|
|
124194
|
+
relName(state, status.buildInfoFile),
|
|
124195
|
+
relName(state, status.inputFile)
|
|
124196
|
+
);
|
|
124132
124197
|
case 1 /* UpToDate */:
|
|
124133
124198
|
if (status.newestInputFileTime !== void 0) {
|
|
124134
124199
|
return reportStatus(
|
|
@@ -124153,20 +124218,20 @@ ${lanes.join("\n")}
|
|
|
124153
124218
|
Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,
|
|
124154
124219
|
relName(state, configFileName)
|
|
124155
124220
|
);
|
|
124156
|
-
case
|
|
124221
|
+
case 15 /* UpToDateWithInputFileText */:
|
|
124157
124222
|
return reportStatus(
|
|
124158
124223
|
state,
|
|
124159
124224
|
Diagnostics.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,
|
|
124160
124225
|
relName(state, configFileName)
|
|
124161
124226
|
);
|
|
124162
|
-
case
|
|
124227
|
+
case 11 /* UpstreamOutOfDate */:
|
|
124163
124228
|
return reportStatus(
|
|
124164
124229
|
state,
|
|
124165
124230
|
Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,
|
|
124166
124231
|
relName(state, configFileName),
|
|
124167
124232
|
relName(state, status.upstreamProjectName)
|
|
124168
124233
|
);
|
|
124169
|
-
case
|
|
124234
|
+
case 12 /* UpstreamBlocked */:
|
|
124170
124235
|
return reportStatus(
|
|
124171
124236
|
state,
|
|
124172
124237
|
status.upstreamProjectBlocked ? Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built : Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,
|
|
@@ -124180,7 +124245,7 @@ ${lanes.join("\n")}
|
|
|
124180
124245
|
relName(state, configFileName),
|
|
124181
124246
|
status.reason
|
|
124182
124247
|
);
|
|
124183
|
-
case
|
|
124248
|
+
case 14 /* TsVersionOutputOfDate */:
|
|
124184
124249
|
return reportStatus(
|
|
124185
124250
|
state,
|
|
124186
124251
|
Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,
|
|
@@ -124188,14 +124253,14 @@ ${lanes.join("\n")}
|
|
|
124188
124253
|
status.version,
|
|
124189
124254
|
version
|
|
124190
124255
|
);
|
|
124191
|
-
case
|
|
124256
|
+
case 17 /* ForceBuild */:
|
|
124192
124257
|
return reportStatus(
|
|
124193
124258
|
state,
|
|
124194
124259
|
Diagnostics.Project_0_is_being_forcibly_rebuilt,
|
|
124195
124260
|
relName(state, configFileName)
|
|
124196
124261
|
);
|
|
124197
|
-
case
|
|
124198
|
-
case
|
|
124262
|
+
case 16 /* ContainerOnly */:
|
|
124263
|
+
case 13 /* ComputingUpstream */:
|
|
124199
124264
|
break;
|
|
124200
124265
|
default:
|
|
124201
124266
|
assertType(status);
|
|
@@ -167171,6 +167236,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
167171
167236
|
getCommonSourceDirectoryOfConfig: () => getCommonSourceDirectoryOfConfig,
|
|
167172
167237
|
getCompilerOptionValue: () => getCompilerOptionValue,
|
|
167173
167238
|
getCompilerOptionsDiffValue: () => getCompilerOptionsDiffValue,
|
|
167239
|
+
getConditions: () => getConditions,
|
|
167174
167240
|
getConfigFileParsingDiagnostics: () => getConfigFileParsingDiagnostics,
|
|
167175
167241
|
getConstantValue: () => getConstantValue,
|
|
167176
167242
|
getContainerNode: () => getContainerNode,
|