Skip to content

Commit 6f5ba94

Browse files
committed
Hack the build to always generate files, IDK what's wrong
1 parent 5730be9 commit 6f5ba94

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
@@ -57,9 +57,7 @@ const diagnosticInformationMapTs = "src/compiler/diagnosticInformationMap.genera
5757
const diagnosticMessagesJson = "src/compiler/diagnosticMessages.json";
5858
const diagnosticMessagesGeneratedJson = "src/compiler/diagnosticMessages.generated.json";
5959
const generateDiagnostics = async () => {
60-
if (needsUpdate(diagnosticMessagesJson, [diagnosticMessagesGeneratedJson, diagnosticInformationMapTs])) {
61-
await exec(process.execPath, ["scripts/processDiagnosticMessages.js", diagnosticMessagesJson]);
62-
}
60+
await exec(process.execPath, ["scripts/processDiagnosticMessages.js", diagnosticMessagesJson]);
6361
};
6462
task("generate-diagnostics", series(buildScripts, generateDiagnostics));
6563
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
8987
.concat(generatedLCGFile);
9088

9189
const localize = async () => {
92-
if (needsUpdate(diagnosticMessagesGeneratedJson, generatedLCGFile)) {
93-
return exec(process.execPath, ["scripts/generateLocalizedDiagnosticMessages.js", "src/loc/lcl", "built/local", diagnosticMessagesGeneratedJson], { ignoreExitCode: true });
94-
}
90+
return exec(process.execPath, ["scripts/generateLocalizedDiagnosticMessages.js", "src/loc/lcl", "built/local", diagnosticMessagesGeneratedJson], { ignoreExitCode: true });
9591
};
9692

9793
/**

0 commit comments

Comments
 (0)