summaryrefslogtreecommitdiff
path: root/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts12
1 files changed, 7 insertions, 5 deletions
diff --git a/main.ts b/main.ts
index a2a97c90a..e8eb37856 100644
--- a/main.ts
+++ b/main.ts
@@ -34,11 +34,13 @@ let startCalled = false;
startCalled = true;
const msg = pb.Msg.decode(payload);
- const cwd = msg.startCwd;
- const argv = msg.startArgv;
- const debugFlag = msg.startDebugFlag;
- const mainJs = msg.startMainJs;
- const mainMap = msg.startMainMap;
+ const {
+ startCwd: cwd,
+ startArgv: argv,
+ startDebugFlag: debugFlag,
+ startMainJs: mainJs,
+ startMainMap: mainMap
+ } = msg;
debug = debugFlag;
util.log("start", { cwd, argv, debugFlag });