@@ -6,7 +6,7 @@ import esbuild from "esbuild";
6
6
import { task } from "hereby" ;
7
7
import _glob from "glob" ;
8
8
import 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" ;
10
10
import { runConsoleTests , refBaseline , localBaseline , refRwcBaseline , localRwcBaseline } from "./scripts/build/tests.mjs" ;
11
11
import { buildProject as realBuildProject , cleanProject } from "./scripts/build/projects.mjs" ;
12
12
import { localizationDirectories } from "./scripts/build/localization.mjs" ;
@@ -148,15 +148,12 @@ const localizationTargets = localizationDirectories
148
148
. map ( f => `built/local/${ f } /diagnosticMessages.generated.json` )
149
149
. concat ( generatedLCGFile ) ;
150
150
151
- const localize = task ( {
151
+ export const localize = task ( {
152
152
name : "localize" ,
153
153
dependencies : [ generateDiagnostics ] ,
154
154
run : async ( ) => {
155
155
await fs . promises . mkdir ( "./built/local" , { recursive : true } ) ; // TODO(jakebailey): needed?
156
- if ( needsUpdate ( diagnosticMessagesGeneratedJson , generatedLCGFile ) ) {
157
- // TODO(jakebailey): slow; need needsUpdate to not block the builds
158
- return exec ( process . execPath , [ "scripts/generateLocalizedDiagnosticMessages.mjs" , "src/loc/lcl" , "built/local" , diagnosticMessagesGeneratedJson ] , { ignoreExitCode : true } ) ;
159
- }
156
+ return exec ( process . execPath , [ "scripts/generateLocalizedDiagnosticMessages.mjs" , "src/loc/lcl" , "built/local" , diagnosticMessagesGeneratedJson ] , { ignoreExitCode : true } ) ;
160
157
}
161
158
} ) ;
162
159
0 commit comments