Skip to content

Commit 89658ee

Browse files
committed
Hack the build to force diagnostics/localization
1 parent ce7854e commit 89658ee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Gulpfile.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ const diagnosticInformationMapTs = "src/compiler/diagnosticInformationMap.genera
5555
const diagnosticMessagesJson = "src/compiler/diagnosticMessages.json";
5656
const diagnosticMessagesGeneratedJson = "src/compiler/diagnosticMessages.generated.json";
5757
const generateDiagnostics = async () => {
58-
if (needsUpdate(diagnosticMessagesJson, [diagnosticMessagesGeneratedJson, diagnosticInformationMapTs])) {
59-
await exec(process.execPath, ["scripts/processDiagnosticMessages.js", diagnosticMessagesJson]);
60-
}
58+
await exec(process.execPath, ["scripts/processDiagnosticMessages.js", diagnosticMessagesJson]);
6159
};
6260
task("generate-diagnostics", series(buildScripts, generateDiagnostics));
6361
task("generate-diagnostics").description = "Generates a diagnostic file in TypeScript based on an input JSON file";
@@ -87,9 +85,7 @@ const localizationTargets = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt
8785
.concat(generatedLCGFile);
8886

8987
const localize = async () => {
90-
if (needsUpdate(diagnosticMessagesGeneratedJson, generatedLCGFile)) {
91-
return exec(process.execPath, ["scripts/generateLocalizedDiagnosticMessages.js", "src/loc/lcl", "built/local", diagnosticMessagesGeneratedJson], { ignoreExitCode: true });
92-
}
88+
return exec(process.execPath, ["scripts/generateLocalizedDiagnosticMessages.js", "src/loc/lcl", "built/local", diagnosticMessagesGeneratedJson], { ignoreExitCode: true });
9389
};
9490

9591
const buildDebugTools = () => buildProject("src/debug");

0 commit comments

Comments
 (0)