Skip to content

Commit

Permalink
Hack the build to always generate files, IDK what's wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Sep 14, 2022
1 parent 5730be9 commit 6f5ba94
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 });
};

/**
Expand Down

0 comments on commit 6f5ba94

Please sign in to comment.