From 6f5ba9412fde713b3dd975988422ee54c3232c4c Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 13 Sep 2022 17:00:07 -0700 Subject: [PATCH] Hack the build to always generate files, IDK what's wrong --- Gulpfile.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 1bbcffdc9341f..c03b3457ad809 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -57,9 +57,7 @@ const diagnosticInformationMapTs = "src/compiler/diagnosticInformationMap.genera const diagnosticMessagesJson = "src/compiler/diagnosticMessages.json"; const diagnosticMessagesGeneratedJson = "src/compiler/diagnosticMessages.generated.json"; const generateDiagnostics = async () => { - if (needsUpdate(diagnosticMessagesJson, [diagnosticMessagesGeneratedJson, diagnosticInformationMapTs])) { - await exec(process.execPath, ["scripts/processDiagnosticMessages.js", diagnosticMessagesJson]); - } + await exec(process.execPath, ["scripts/processDiagnosticMessages.js", diagnosticMessagesJson]); }; task("generate-diagnostics", series(buildScripts, generateDiagnostics)); task("generate-diagnostics").description = "Generates a diagnostic file in TypeScript based on an input JSON file"; @@ -89,9 +87,7 @@ const localizationTargets = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt .concat(generatedLCGFile); const localize = async () => { - if (needsUpdate(diagnosticMessagesGeneratedJson, generatedLCGFile)) { - return exec(process.execPath, ["scripts/generateLocalizedDiagnosticMessages.js", "src/loc/lcl", "built/local", diagnosticMessagesGeneratedJson], { ignoreExitCode: true }); - } + return exec(process.execPath, ["scripts/generateLocalizedDiagnosticMessages.js", "src/loc/lcl", "built/local", diagnosticMessagesGeneratedJson], { ignoreExitCode: true }); }; /**