Skip to content

Commit a5c9a2d

Browse files
author
Yui T
committed
Include the built into local task
1 parent 46141f5 commit a5c9a2d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Jakefile.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,17 @@ file(diagnosticInfoMapTs, [processDiagnosticMessagesJs, diagnosticMessagesJson],
345345
process.stderr.write(error);
346346
});
347347
ex.addListener("cmdEnd", function() {
348-
jake.cpR(generatedDiagnosticMessagesJSON, builtGeneratedDiagnosticMessagesJSON)
349348
complete();
350349
});
351350
ex.run();
352351
}, {async: true});
353352

353+
file(builtGeneratedDiagnosticMessagesJSON,[generatedDiagnosticMessagesJSON], function() {
354+
if (fs.existsSync(builtLocalDirectory)) {
355+
jake.cpR(generatedDiagnosticMessagesJSON, builtGeneratedDiagnosticMessagesJSON);
356+
}
357+
}, {async: true});
358+
354359
desc("Generates a diagnostic file in TypeScript based on an input JSON file");
355360
task("generate-diagnostics", [diagnosticInfoMapTs]);
356361

@@ -479,7 +484,7 @@ task("lssl", [lsslFile]);
479484

480485
// Local target to build the compiler and services
481486
desc("Builds the full compiler and services");
482-
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile, serverFile]);
487+
task("local", ["generate-diagnostics", "lib", tscFile, servicesFile, nodeDefinitionsFile, serverFile, builtGeneratedDiagnosticMessagesJSON]);
483488

484489
// Local target to build only tsc.js
485490
desc("Builds only the compiler");

0 commit comments

Comments
 (0)