From 8a7ac7f4f3aacfe322732c616c7622c79db9fae3 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 14 May 2018 21:47:39 -0400 Subject: [PATCH] Run clang-format on msg.proto --- Makefile | 1 + compiler.ts | 5 ++--- msg.proto | 9 ++++----- util.ts | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 93791200ea..e201e7855a 100644 --- a/Makefile +++ b/Makefile @@ -34,5 +34,6 @@ lint: node_modules fmt: node_modules yarn fmt go fmt + clang-format msg.proto -i .PHONY: lint clean distclean diff --git a/compiler.ts b/compiler.ts index 0be5c6204c..21f4d5bd3e 100644 --- a/compiler.ts +++ b/compiler.ts @@ -6,7 +6,7 @@ import * as path from "path"; export function compile(cwd: string, inputFn: string): void { const options: ts.CompilerOptions = { allowJs: true, - outFile: "out.js" + outDir: "_denoCache_/", }; const host = new CompilerHost(cwd); @@ -134,8 +134,7 @@ export class CompilerHost { onError: ((message: string) => void) | undefined, sourceFiles: ReadonlyArray ): void { - log("writeFile", fileName); - log("writeFile source", data); + log("writeFile", { fileName, data }); globalEval(data); } diff --git a/msg.proto b/msg.proto index fcbd9bcbce..0d73dca663 100644 --- a/msg.proto +++ b/msg.proto @@ -1,7 +1,6 @@ syntax = "proto3"; package main; - message Msg { enum MsgKind { START = 0; @@ -12,14 +11,14 @@ message Msg { MsgKind kind = 10; // START - string cwd = 11; - repeated string argv = 12; + string cwd = 11; + repeated string argv = 12; // READ_FILE_SYNC - string path = 20; + string path = 20; // DATA_RESPONSE - bytes data = 30; + bytes data = 30; string error = 31; // EXIT diff --git a/util.ts b/util.ts index b5b864a5fd..40301a5bb8 100644 --- a/util.ts +++ b/util.ts @@ -11,7 +11,7 @@ const _global = globalEval("this"); const print = V8Worker2.print; // To control internal logging output -const debug = false; +const debug = true; // Internal logging for deno. Use the "debug" variable above to control // output.