@typescript-deploys/pr-build 4.7.0-pr-48784-4 → 4.7.0-pr-48784-10

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.
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = ts.versionMajorMinor + ".0-insiders.20220427";
92
+ ts.version = ts.versionMajorMinor + ".0-insiders.20220429";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -8271,7 +8271,7 @@ var ts;
8271
8271
  Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext: diag(1323, ts.DiagnosticCategory.Error, "Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323", "Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'."),
8272
8272
  Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext: diag(1324, ts.DiagnosticCategory.Error, "Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324", "Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'."),
8273
8273
  Argument_of_dynamic_import_cannot_be_spread_element: diag(1325, ts.DiagnosticCategory.Error, "Argument_of_dynamic_import_cannot_be_spread_element_1325", "Argument of dynamic import cannot be spread element."),
8274
- Dynamic_import_cannot_have_type_arguments: diag(1326, ts.DiagnosticCategory.Error, "Dynamic_import_cannot_have_type_arguments_1326", "Dynamic import cannot have type arguments."),
8274
+ This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments: diag(1326, ts.DiagnosticCategory.Error, "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326", "This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),
8275
8275
  String_literal_with_double_quotes_expected: diag(1327, ts.DiagnosticCategory.Error, "String_literal_with_double_quotes_expected_1327", "String literal with double quotes expected."),
8276
8276
  Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal: diag(1328, ts.DiagnosticCategory.Error, "Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328", "Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),
8277
8277
  _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0: diag(1329, ts.DiagnosticCategory.Error, "_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329", "'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),
@@ -8658,7 +8658,6 @@ var ts;
8658
8658
  A_rest_element_cannot_have_a_property_name: diag(2566, ts.DiagnosticCategory.Error, "A_rest_element_cannot_have_a_property_name_2566", "A rest element cannot have a property name."),
8659
8659
  Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations: diag(2567, ts.DiagnosticCategory.Error, "Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567", "Enum declarations can only merge with namespace or other enum declarations."),
8660
8660
  Property_0_may_not_exist_on_type_1_Did_you_mean_2: diag(2568, ts.DiagnosticCategory.Error, "Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568", "Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),
8661
- Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: diag(2569, ts.DiagnosticCategory.Error, "Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569", "Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),
8662
8661
  Could_not_find_name_0_Did_you_mean_1: diag(2570, ts.DiagnosticCategory.Error, "Could_not_find_name_0_Did_you_mean_1_2570", "Could not find name '{0}'. Did you mean '{1}'?"),
8663
8662
  Object_is_of_type_unknown: diag(2571, ts.DiagnosticCategory.Error, "Object_is_of_type_unknown_2571", "Object is of type 'unknown'."),
8664
8663
  A_rest_element_type_must_be_an_array_type: diag(2574, ts.DiagnosticCategory.Error, "A_rest_element_type_must_be_an_array_type_2574", "A rest element type must be an array type."),
@@ -9346,6 +9345,7 @@ var ts;
9346
9345
  Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: diag(6397, ts.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397", "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),
9347
9346
  Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: diag(6398, ts.DiagnosticCategory.Message, "Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398", "Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),
9348
9347
  Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_are_not_emitted: diag(6399, ts.DiagnosticCategory.Message, "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_are_not_emitted_6399", "Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes are not emitted"),
9348
+ Project_0_is_up_to_date_but_needs_update_to_timestamps_of_output_files_that_are_older_than_input_files: diag(6400, ts.DiagnosticCategory.Message, "Project_0_is_up_to_date_but_needs_update_to_timestamps_of_output_files_that_are_older_than_input_fil_6400", "Project '{0}' is up to date but needs update to timestamps of output files that are older than input files"),
9349
9349
  The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, ts.DiagnosticCategory.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}'"),
9350
9350
  The_expected_type_comes_from_this_index_signature: diag(6501, ts.DiagnosticCategory.Message, "The_expected_type_comes_from_this_index_signature_6501", "The expected type comes from this index signature."),
9351
9351
  The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, ts.DiagnosticCategory.Message, "The_expected_type_comes_from_the_return_type_of_this_signature_6502", "The expected type comes from the return type of this signature."),
@@ -82746,7 +82746,7 @@ var ts;
82746
82746
  }
82747
82747
  var yieldType = getIterationTypeOfIterable(use, 0 /* Yield */, inputType, /*errorNode*/ undefined);
82748
82748
  if (yieldType) {
82749
- return [ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators, false];
82749
+ return [ts.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, false];
82750
82750
  }
82751
82751
  if (isES2015OrLaterIterable((_a = inputType.symbol) === null || _a === void 0 ? void 0 : _a.escapedName)) {
82752
82752
  return [ts.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, true];
@@ -86023,7 +86023,7 @@ var ts;
86023
86023
  var symbol = getIntrinsicTagSymbol(name.parent);
86024
86024
  return symbol === unknownSymbol ? undefined : symbol;
86025
86025
  }
86026
- var result = resolveEntityName(name, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ !isJSDoc_1, ts.getHostSignatureFromJSDoc(name));
86026
+ var result = resolveEntityName(name, meaning, /*ignoreErrors*/ false, /* dontResolveAlias */ true, ts.getHostSignatureFromJSDoc(name));
86027
86027
  if (!result && isJSDoc_1) {
86028
86028
  var container = ts.findAncestor(name, ts.or(ts.isClassLike, ts.isInterfaceDeclaration));
86029
86029
  if (container) {
@@ -87880,6 +87880,9 @@ var ts;
87880
87880
  return ts.some(types, checkGrammarExpressionWithTypeArguments);
87881
87881
  }
87882
87882
  function checkGrammarExpressionWithTypeArguments(node) {
87883
+ if (ts.isExpressionWithTypeArguments(node) && ts.isImportKeyword(node.expression) && node.typeArguments) {
87884
+ return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
87885
+ }
87883
87886
  return checkGrammarTypeArguments(node, node.typeArguments);
87884
87887
  }
87885
87888
  function checkGrammarClassDeclarationHeritageClauses(node) {
@@ -88821,7 +88824,7 @@ var ts;
88821
88824
  return grammarErrorOnNode(node, ts.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);
88822
88825
  }
88823
88826
  if (node.typeArguments) {
88824
- return grammarErrorOnNode(node, ts.Diagnostics.Dynamic_import_cannot_have_type_arguments);
88827
+ return grammarErrorOnNode(node, ts.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);
88825
88828
  }
88826
88829
  var nodeArguments = node.arguments;
88827
88830
  if (moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.NodeNext) {
@@ -108617,6 +108620,8 @@ var ts;
108617
108620
  var varDecl = factory.createVariableDeclaration(newId, /*exclamationToken*/ undefined, resolver.createTypeOfExpression(input.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), /*initializer*/ undefined);
108618
108621
  errorFallbackNode = undefined;
108619
108622
  var statement = factory.createVariableStatement(needsDeclare ? [factory.createModifier(135 /* DeclareKeyword */)] : [], factory.createVariableDeclarationList([varDecl], 2 /* Const */));
108623
+ preserveJsDoc(statement, input);
108624
+ ts.removeAllComments(input);
108620
108625
  return [statement, factory.updateExportAssignment(input, input.decorators, input.modifiers, newId)];
108621
108626
  }
108622
108627
  }
@@ -120111,6 +120116,10 @@ var ts;
120111
120116
  }
120112
120117
  return ts.filterSemanticDiagnostics(diagnostics, state.compilerOptions);
120113
120118
  }
120119
+ function isProgramBundleEmitBuildInfo(info) {
120120
+ return !!ts.outFile(info.options || {});
120121
+ }
120122
+ ts.isProgramBundleEmitBuildInfo = isProgramBundleEmitBuildInfo;
120114
120123
  /**
120115
120124
  * Gets the program information to be emitted in buildInfo so that we can use it to create new program
120116
120125
  */
@@ -120122,7 +120131,18 @@ var ts;
120122
120131
  var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(ts.getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));
120123
120132
  state.dtsChangeTime = state.hasChangedEmitSignature ? ts.getCurrentTime(host).getTime() : state.dtsChangeTime;
120124
120133
  if (outFilePath) {
120134
+ var fileNames_1 = [];
120135
+ var fileInfos_1 = [];
120136
+ state.program.getRootFileNames().forEach(function (f) {
120137
+ var sourceFile = state.program.getSourceFile(f);
120138
+ if (!sourceFile)
120139
+ return;
120140
+ fileNames_1.push(relativeToBuildInfo(sourceFile.resolvedPath));
120141
+ fileInfos_1.push(sourceFile.version);
120142
+ });
120125
120143
  var result_15 = {
120144
+ fileNames: fileNames_1,
120145
+ fileInfos: fileInfos_1,
120126
120146
  options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, "affectsBundleEmitBuildInfo"),
120127
120147
  outSignature: state.outSignature,
120128
120148
  dtsChangeTime: state.dtsChangeTime,
@@ -120649,43 +120669,54 @@ var ts;
120649
120669
  { version: fileInfo.version, signature: fileInfo.signature === false ? undefined : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope, impliedFormat: fileInfo.impliedFormat };
120650
120670
  }
120651
120671
  ts.toBuilderStateFileInfo = toBuilderStateFileInfo;
120652
- function createBuilderProgramUsingProgramBuildInfo(programFromBuildInfo, buildInfoPath, host) {
120653
- var _a, _b, _c, _d, _e;
120672
+ function createBuilderProgramUsingProgramBuildInfo(program, buildInfoPath, host) {
120673
+ var _a, _b, _c, _d;
120654
120674
  var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
120655
120675
  var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames());
120656
- var program = programFromBuildInfo;
120657
- var filePaths = (_a = program.fileNames) === null || _a === void 0 ? void 0 : _a.map(toPath);
120658
- var filePathsSetList = (_b = program.fileIdsList) === null || _b === void 0 ? void 0 : _b.map(function (fileIds) { return new ts.Set(fileIds.map(toFilePath)); });
120659
- var fileInfos = new ts.Map();
120660
- var emitSignatures = ((_c = program.options) === null || _c === void 0 ? void 0 : _c.composite) && !ts.outFile(program.options) ? new ts.Map() : undefined;
120661
- (_d = program.fileInfos) === null || _d === void 0 ? void 0 : _d.forEach(function (fileInfo, index) {
120662
- var path = toFilePath(index + 1);
120663
- var stateFileInfo = toBuilderStateFileInfo(fileInfo);
120664
- fileInfos.set(path, stateFileInfo);
120665
- if (emitSignatures && stateFileInfo.signature)
120666
- emitSignatures.set(path, stateFileInfo.signature);
120667
- });
120668
- (_e = program.emitSignatures) === null || _e === void 0 ? void 0 : _e.forEach(function (value) {
120669
- if (ts.isNumber(value))
120670
- emitSignatures.delete(toFilePath(value));
120671
- else
120672
- emitSignatures.set(toFilePath(value[0]), value[1]);
120673
- });
120674
- var state = {
120675
- fileInfos: fileInfos,
120676
- compilerOptions: program.options ? ts.convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {},
120677
- referencedMap: toManyToManyPathMap(program.referencedMap),
120678
- exportedModulesMap: toManyToManyPathMap(program.exportedModulesMap),
120679
- semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && ts.arrayToMap(program.semanticDiagnosticsPerFile, function (value) { return toFilePath(ts.isNumber(value) ? value : value[0]); }, function (value) { return ts.isNumber(value) ? ts.emptyArray : value[1]; }),
120680
- hasReusableDiagnostic: true,
120681
- affectedFilesPendingEmit: ts.map(program.affectedFilesPendingEmit, function (value) { return toFilePath(value[0]); }),
120682
- affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && ts.arrayToMap(program.affectedFilesPendingEmit, function (value) { return toFilePath(value[0]); }, function (value) { return value[1]; }),
120683
- affectedFilesPendingEmitIndex: program.affectedFilesPendingEmit && 0,
120684
- changedFilesSet: new ts.Set(ts.map(program.changeFileSet, toFilePath)),
120685
- dtsChangeTime: program.dtsChangeTime,
120686
- emitSignatures: (emitSignatures === null || emitSignatures === void 0 ? void 0 : emitSignatures.size) ? emitSignatures : undefined,
120687
- outSignature: program.outSignature,
120688
- };
120676
+ var state;
120677
+ var filePaths;
120678
+ var filePathsSetList;
120679
+ if (isProgramBundleEmitBuildInfo(program)) {
120680
+ state = {
120681
+ fileInfos: new ts.Map(),
120682
+ compilerOptions: program.options ? ts.convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {},
120683
+ dtsChangeTime: program.dtsChangeTime,
120684
+ outSignature: program.outSignature,
120685
+ };
120686
+ }
120687
+ else {
120688
+ filePaths = (_a = program.fileNames) === null || _a === void 0 ? void 0 : _a.map(toPath);
120689
+ filePathsSetList = (_b = program.fileIdsList) === null || _b === void 0 ? void 0 : _b.map(function (fileIds) { return new ts.Set(fileIds.map(toFilePath)); });
120690
+ var fileInfos_2 = new ts.Map();
120691
+ var emitSignatures_1 = ((_c = program.options) === null || _c === void 0 ? void 0 : _c.composite) && !ts.outFile(program.options) ? new ts.Map() : undefined;
120692
+ program.fileInfos.forEach(function (fileInfo, index) {
120693
+ var path = toFilePath(index + 1);
120694
+ var stateFileInfo = toBuilderStateFileInfo(fileInfo);
120695
+ fileInfos_2.set(path, stateFileInfo);
120696
+ if (emitSignatures_1 && stateFileInfo.signature)
120697
+ emitSignatures_1.set(path, stateFileInfo.signature);
120698
+ });
120699
+ (_d = program.emitSignatures) === null || _d === void 0 ? void 0 : _d.forEach(function (value) {
120700
+ if (ts.isNumber(value))
120701
+ emitSignatures_1.delete(toFilePath(value));
120702
+ else
120703
+ emitSignatures_1.set(toFilePath(value[0]), value[1]);
120704
+ });
120705
+ state = {
120706
+ fileInfos: fileInfos_2,
120707
+ compilerOptions: program.options ? ts.convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {},
120708
+ referencedMap: toManyToManyPathMap(program.referencedMap),
120709
+ exportedModulesMap: toManyToManyPathMap(program.exportedModulesMap),
120710
+ semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && ts.arrayToMap(program.semanticDiagnosticsPerFile, function (value) { return toFilePath(ts.isNumber(value) ? value : value[0]); }, function (value) { return ts.isNumber(value) ? ts.emptyArray : value[1]; }),
120711
+ hasReusableDiagnostic: true,
120712
+ affectedFilesPendingEmit: ts.map(program.affectedFilesPendingEmit, function (value) { return toFilePath(value[0]); }),
120713
+ affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && ts.arrayToMap(program.affectedFilesPendingEmit, function (value) { return toFilePath(value[0]); }, function (value) { return value[1]; }),
120714
+ affectedFilesPendingEmitIndex: program.affectedFilesPendingEmit && 0,
120715
+ changedFilesSet: new ts.Set(ts.map(program.changeFileSet, toFilePath)),
120716
+ dtsChangeTime: program.dtsChangeTime,
120717
+ emitSignatures: (emitSignatures_1 === null || emitSignatures_1 === void 0 ? void 0 : emitSignatures_1.size) ? emitSignatures_1 : undefined,
120718
+ };
120719
+ }
120689
120720
  return {
120690
120721
  getState: function () { return state; },
120691
120722
  backupEmitState: ts.noop,
@@ -120735,6 +120766,18 @@ var ts;
120735
120766
  }
120736
120767
  }
120737
120768
  ts.createBuilderProgramUsingProgramBuildInfo = createBuilderProgramUsingProgramBuildInfo;
120769
+ function getBuildInfoFileVersionMap(program, buildInfoPath, host) {
120770
+ var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));
120771
+ var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames());
120772
+ var fileInfos = new ts.Map();
120773
+ program.fileInfos.forEach(function (fileInfo, index) {
120774
+ var path = ts.toPath(program.fileNames[index], buildInfoDirectory, getCanonicalFileName);
120775
+ var version = ts.isString(fileInfo) ? fileInfo : fileInfo.version; // eslint-disable-line @typescript-eslint/no-unnecessary-type-assertion
120776
+ fileInfos.set(path, version);
120777
+ });
120778
+ return fileInfos;
120779
+ }
120780
+ ts.getBuildInfoFileVersionMap = getBuildInfoFileVersionMap;
120738
120781
  function createRedirectedBuilderProgram(getState, configFileParsingDiagnostics) {
120739
120782
  return {
120740
120783
  getState: ts.notImplemented,
@@ -123669,11 +123712,12 @@ var ts;
123669
123712
  UpToDateStatusType[UpToDateStatusType["UpstreamBlocked"] = 9] = "UpstreamBlocked";
123670
123713
  UpToDateStatusType[UpToDateStatusType["ComputingUpstream"] = 10] = "ComputingUpstream";
123671
123714
  UpToDateStatusType[UpToDateStatusType["TsVersionOutputOfDate"] = 11] = "TsVersionOutputOfDate";
123715
+ UpToDateStatusType[UpToDateStatusType["UpToDateWithInputFileText"] = 12] = "UpToDateWithInputFileText";
123672
123716
  /**
123673
123717
  * Projects with no outputs (i.e. "solution" files)
123674
123718
  */
123675
- UpToDateStatusType[UpToDateStatusType["ContainerOnly"] = 12] = "ContainerOnly";
123676
- UpToDateStatusType[UpToDateStatusType["ForceBuild"] = 13] = "ForceBuild";
123719
+ UpToDateStatusType[UpToDateStatusType["ContainerOnly"] = 13] = "ContainerOnly";
123720
+ UpToDateStatusType[UpToDateStatusType["ForceBuild"] = 14] = "ForceBuild";
123677
123721
  })(UpToDateStatusType = ts.UpToDateStatusType || (ts.UpToDateStatusType = {}));
123678
123722
  function resolveConfigFileProjectName(project) {
123679
123723
  if (ts.fileExtensionIs(project, ".json" /* Json */)) {
@@ -124500,7 +124544,7 @@ var ts;
124500
124544
  }
124501
124545
  continue;
124502
124546
  }
124503
- if (status.type === ts.UpToDateStatusType.UpToDateWithUpstreamTypes) {
124547
+ if (status.type === ts.UpToDateStatusType.UpToDateWithUpstreamTypes || status.type === ts.UpToDateStatusType.UpToDateWithInputFileText) {
124504
124548
  reportAndStoreErrors(state, projectPath, ts.getConfigFileParsingDiagnostics(config));
124505
124549
  return createUpdateOutputFileStampsProject(state, project, projectPath, config, buildOrder);
124506
124550
  }
@@ -124714,6 +124758,8 @@ var ts;
124714
124758
  var oldestOutputFileName = "(none)";
124715
124759
  var oldestOutputFileTime = maximumDate;
124716
124760
  var buildInfoTime;
124761
+ var buildInfoProgram;
124762
+ var buildInfoVersionMap;
124717
124763
  var newestDeclarationFileContentChangedTime;
124718
124764
  if (buildInfoPath) {
124719
124765
  var buildInfoCacheEntry_1 = getBuildInfoCacheEntry(state, buildInfoPath, resolvedPath);
@@ -124746,6 +124792,7 @@ var ts;
124746
124792
  buildInfoFile: buildInfoPath
124747
124793
  };
124748
124794
  }
124795
+ buildInfoProgram = buildInfo.program;
124749
124796
  }
124750
124797
  oldestOutputFileTime = buildInfoTime;
124751
124798
  oldestOutputFileName = buildInfoPath;
@@ -124754,6 +124801,7 @@ var ts;
124754
124801
  // Check input files
124755
124802
  var newestInputFileName = undefined;
124756
124803
  var newestInputFileTime = minimumDate;
124804
+ var pseudoInputUptodate = false;
124757
124805
  // Get timestamps of input files
124758
124806
  for (var _e = 0, _f = project.fileNames; _e < _f.length; _e++) {
124759
124807
  var inputFile = _f[_e];
@@ -124766,11 +124814,25 @@ var ts;
124766
124814
  }
124767
124815
  // If an buildInfo is older than the newest input, we can stop checking
124768
124816
  if (buildInfoTime && buildInfoTime < inputTime) {
124769
- return {
124770
- type: ts.UpToDateStatusType.OutOfDateWithSelf,
124771
- outOfDateOutputFileName: buildInfoPath,
124772
- newerInputFileName: inputFile
124773
- };
124817
+ var version_3 = void 0;
124818
+ var currentVersion = void 0;
124819
+ if (buildInfoProgram) {
124820
+ // Read files and see if they are same, read is anyways cached
124821
+ if (!buildInfoVersionMap)
124822
+ buildInfoVersionMap = ts.getBuildInfoFileVersionMap(buildInfoProgram, buildInfoPath, host);
124823
+ version_3 = buildInfoVersionMap.get(toPath(state, inputFile));
124824
+ var text = version_3 ? state.readFileWithCache(inputFile) : undefined;
124825
+ currentVersion = text && (host.createHash || ts.generateDjb2Hash)(text);
124826
+ if (version_3 && version_3 === currentVersion)
124827
+ pseudoInputUptodate = true;
124828
+ }
124829
+ if (!version_3 || version_3 !== currentVersion) {
124830
+ return {
124831
+ type: ts.UpToDateStatusType.OutOfDateWithSelf,
124832
+ outOfDateOutputFileName: buildInfoPath,
124833
+ newerInputFileName: inputFile
124834
+ };
124835
+ }
124774
124836
  }
124775
124837
  if (inputTime > newestInputFileTime) {
124776
124838
  newestInputFileName = inputFile;
@@ -124875,7 +124937,11 @@ var ts;
124875
124937
  }
124876
124938
  // Up to date
124877
124939
  return {
124878
- type: pseudoUpToDate ? ts.UpToDateStatusType.UpToDateWithUpstreamTypes : ts.UpToDateStatusType.UpToDate,
124940
+ type: pseudoUpToDate ?
124941
+ ts.UpToDateStatusType.UpToDateWithUpstreamTypes :
124942
+ pseudoInputUptodate ?
124943
+ ts.UpToDateStatusType.UpToDateWithInputFileText :
124944
+ ts.UpToDateStatusType.UpToDate,
124879
124945
  newestDeclarationFileContentChangedTime: newestDeclarationFileContentChangedTime,
124880
124946
  newestInputFileTime: newestInputFileTime,
124881
124947
  newestInputFileName: newestInputFileName,
@@ -125018,6 +125084,7 @@ var ts;
125018
125084
  break;
125019
125085
  }
125020
125086
  // falls through
125087
+ case ts.UpToDateStatusType.UpToDateWithInputFileText:
125021
125088
  case ts.UpToDateStatusType.UpToDateWithUpstreamTypes:
125022
125089
  case ts.UpToDateStatusType.OutOfDateWithPrepend:
125023
125090
  if (!(buildResult & BuildResultFlags.DeclarationOutputUnchanged)) {
@@ -125208,7 +125275,7 @@ var ts;
125208
125275
  if (!state.watch || !state.lastCachedPackageJsonLookups)
125209
125276
  return;
125210
125277
  ts.mutateMap(getOrCreateValueMapFromConfigFileMap(state.allWatchedPackageJsonFiles, resolvedPath), new ts.Map(state.lastCachedPackageJsonLookups.get(resolvedPath)), {
125211
- createNewValue: function (path, _input) { return watchFile(state, path, function () { return invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.Full); }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.PackageJson, resolved); },
125278
+ createNewValue: function (path, _input) { return watchFile(state, path, function () { return invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.None); }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.PackageJson, resolved); },
125212
125279
  onDeleteValue: ts.closeFileWatcher,
125213
125280
  });
125214
125281
  }
@@ -125359,6 +125426,8 @@ var ts;
125359
125426
  return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, relName(state, configFileName), relName(state, status.newerProjectName));
125360
125427
  case ts.UpToDateStatusType.UpToDateWithUpstreamTypes:
125361
125428
  return reportStatus(state, ts.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, relName(state, configFileName));
125429
+ case ts.UpToDateStatusType.UpToDateWithInputFileText:
125430
+ return reportStatus(state, ts.Diagnostics.Project_0_is_up_to_date_but_needs_update_to_timestamps_of_output_files_that_are_older_than_input_files, relName(state, configFileName));
125362
125431
  case ts.UpToDateStatusType.UpstreamOutOfDate:
125363
125432
  return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, relName(state, configFileName), relName(state, status.upstreamProjectName));
125364
125433
  case ts.UpToDateStatusType.UpstreamBlocked:
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": "4.7.0-pr-48784-4",
5
+ "version": "4.7.0-pr-48784-10",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [