Add flag --recompile (#801)

This commit is contained in:
Bartek Iwańczuk 2018-09-24 21:33:50 +02:00 committed by Ryan Dahl
parent 17a7b03d1b
commit 3fe4be07ca
6 changed files with 33 additions and 4 deletions

View file

@ -37,7 +37,7 @@ export default function denoMain() {
libdeno.setGlobalErrorHandler(onGlobalError);
const compiler = DenoCompiler.instance();
// First we send an empty "Start" message to let the privlaged side know we
// First we send an empty "Start" message to let the privileged side know we
// are ready. The response should be a "StartRes" message containing the CLI
// args and other info.
const startResMsg = sendStart();
@ -68,5 +68,6 @@ export default function denoMain() {
os.exit(0);
}
compiler.recompile = startResMsg.recompileFlag();
compiler.run(inputFn, `${cwd}/`);
}