@@ -6,7 +6,7 @@ import esbuild from "esbuild";
66import { task } from "hereby" ;
77import _glob from "glob" ;
88import util from "util" ;
9- import { exec , readJson , needsUpdate , getDiffTool , getDirSize } from "./scripts/build/utils.mjs" ;
9+ import { exec , readJson , getDiffTool , getDirSize } from "./scripts/build/utils.mjs" ;
1010import { runConsoleTests , refBaseline , localBaseline , refRwcBaseline , localRwcBaseline } from "./scripts/build/tests.mjs" ;
1111import { buildProject as realBuildProject , cleanProject } from "./scripts/build/projects.mjs" ;
1212import { localizationDirectories } from "./scripts/build/localization.mjs" ;
@@ -148,15 +148,10 @@ const localizationTargets = localizationDirectories
148148 . map ( f => `built/local/${ f } /diagnosticMessages.generated.json` )
149149 . concat ( generatedLCGFile ) ;
150150
151- const localize = task ( {
151+ export const localize = task ( {
152152 name : "localize" ,
153153 dependencies : [ generateDiagnostics ] ,
154- run : async ( ) => {
155- if ( needsUpdate ( diagnosticMessagesGeneratedJson , generatedLCGFile ) ) {
156- // TODO(jakebailey): slow; need needsUpdate to not block the builds
157- return exec ( process . execPath , [ "scripts/generateLocalizedDiagnosticMessages.mjs" , "src/loc/lcl" , "built/local" , diagnosticMessagesGeneratedJson ] , { ignoreExitCode : true } ) ;
158- }
159- }
154+ run : ( ) => exec ( process . execPath , [ "scripts/generateLocalizedDiagnosticMessages.mjs" , "src/loc/lcl" , "built/local" , diagnosticMessagesGeneratedJson ] , { ignoreExitCode : true } ) ,
160155} ) ;
161156
162157export const buildSrc = task ( {
0 commit comments