@@ -55,9 +55,7 @@ const diagnosticInformationMapTs = "src/compiler/diagnosticInformationMap.genera
55
55
const diagnosticMessagesJson = "src/compiler/diagnosticMessages.json" ;
56
56
const diagnosticMessagesGeneratedJson = "src/compiler/diagnosticMessages.generated.json" ;
57
57
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 ] ) ;
61
59
} ;
62
60
task ( "generate-diagnostics" , series ( buildScripts , generateDiagnostics ) ) ;
63
61
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
87
85
. concat ( generatedLCGFile ) ;
88
86
89
87
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 } ) ;
93
89
} ;
94
90
95
91
const buildDebugTools = ( ) => buildProject ( "src/debug" ) ;
0 commit comments